public ProxyChannelItem Clone() { ProxyChannelItem pi = new ProxyChannelItem(); pi.Import(this); return(pi); }
public void Import(ProxyChannelItem pi) { this.ListenPort = pi.ListenPort; this.Name = pi.Name; this.RemoteIP = pi.RemoteIP; this.RemotePort = pi.RemotePort; }
public static ProxyChannelItem FromModel(ProxyChannel model) { ProxyChannelItem tempVM = new ProxyChannelItem(); tempVM.Name = model.Name; tempVM.ListenPort = model.ListenPort; tempVM.RemoteIP = model.RemoteIP; tempVM.RemotePort = model.RemotePort; return(tempVM); }