public MyChannelCfg ChannelCfgToMyChannelCfg(ChannelCfg _ChannelCfg) { MyChannelCfg _MyChannelCfg = new MyChannelCfg(); _MyChannelCfg.TcChaneelID = _ChannelCfg.TcChaneelID; _MyChannelCfg.TcUID = _ChannelCfg.TcUID; _MyChannelCfg.TcPSW = _ChannelCfg.TcPSW; _MyChannelCfg.Name = _ChannelCfg.Name; _MyChannelCfg.TcDescription = _ChannelCfg.TcDescription; _MyChannelCfg.CaptureCfg = _ChannelCfg.CaptureCfg; _MyChannelCfg.CatchFaceCfg = _ChannelCfg.CatchFaceCfg; _MyChannelCfg.Addr = _ChannelCfg.Addr; _MyChannelCfg.Port = _ChannelCfg.Port; return(_MyChannelCfg); }
public ChannelCfgLBS MyChannelCfgToChannelCfgLBS(MyChannelCfg _MyChannelCfg) { ChannelCfgLBS _ChannelCfg = new ChannelCfgLBS(); _ChannelCfg.TcChannelID = _MyChannelCfg.TcChaneelID; _ChannelCfg.TcUID = _MyChannelCfg.TcUID; _ChannelCfg.TcPSW = _MyChannelCfg.TcPSW; _ChannelCfg.Name = _MyChannelCfg.Name; _ChannelCfg.TcDescription = _MyChannelCfg.TcDescription; _ChannelCfg.CaptureCfg = _MyChannelCfg.CaptureCfg; _ChannelCfg.CatchFaceCfg = _MyChannelCfg.CatchFaceCfg; _ChannelCfg.Addr = _MyChannelCfg.Addr; _ChannelCfg.Channel_address = _MyChannelCfg.Channel_address; _ChannelCfg.Port = _MyChannelCfg.Port; _ChannelCfg.Latitude = _MyChannelCfg.Latitude; _ChannelCfg.Longitude = _MyChannelCfg.Longitude; return(_ChannelCfg); }
public MyChannelCfg ChannelCfgToMyChannelCfgLBS(ChannelCfgLBS _ChannelCfg) { MyChannelCfg _MyChannelCfg = new MyChannelCfg(); _MyChannelCfg.TcChaneelID = _ChannelCfg.TcChannelID; _MyChannelCfg.ChannelType = _ChannelCfg.Channel_type; _MyChannelCfg.TcUID = _ChannelCfg.TcUID; _MyChannelCfg.TcPSW = _ChannelCfg.TcPSW; _MyChannelCfg.Name = _ChannelCfg.Name; _MyChannelCfg.TcDescription = _ChannelCfg.TcDescription; _MyChannelCfg.CaptureCfg = _ChannelCfg.CaptureCfg; _MyChannelCfg.CatchFaceCfg = _ChannelCfg.CatchFaceCfg; _MyChannelCfg.Addr = _ChannelCfg.Addr; _MyChannelCfg.Channel_address = _ChannelCfg.Channel_address; _MyChannelCfg.Port = _ChannelCfg.Port; _MyChannelCfg.Latitude = _ChannelCfg.Latitude; _MyChannelCfg.Longitude = _ChannelCfg.Longitude; return(_MyChannelCfg); }