Beispiel #1
0
        public ProxyChannelItem Clone()
        {
            ProxyChannelItem pi = new ProxyChannelItem();

            pi.Import(this);
            return(pi);
        }
Beispiel #2
0
 public void Import(ProxyChannelItem pi)
 {
     this.ListenPort = pi.ListenPort;
     this.Name       = pi.Name;
     this.RemoteIP   = pi.RemoteIP;
     this.RemotePort = pi.RemotePort;
 }
Beispiel #3
0
        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);
        }