Channel.cs
changeset 3 01a00603ec28
parent 1 f203331a8f4a
     1.1 --- a/Channel.cs	Fri May 15 15:16:18 2015 +0200
     1.2 +++ b/Channel.cs	Fri May 15 17:28:51 2015 +0200
     1.3 @@ -63,6 +63,17 @@
     1.4  		//
     1.5  		public string TXT { get; set; }
     1.6  
     1.7 +        //////
     1.8 +	    public void Copy(Channel aChannel)
     1.9 +	    {
    1.10 +            PropertyInfo[] properties = typeof(Channel).GetProperties();
    1.11 +            foreach (PropertyInfo property in properties)
    1.12 +            {
    1.13 +                object value = property.GetValue(aChannel);
    1.14 +                property.SetValue(this,value);
    1.15 +            }	        
    1.16 +	    }
    1.17 +
    1.18  		//////
    1.19  		public override string ToString()
    1.20  		{