public UC_ScreenSummary(LedRegistationInfo screenInfo) : this() { this.screenNameTextBox.Text = string.IsNullOrEmpty(screenInfo.led_name) ? screenInfo.sn_num : screenInfo.led_name; this.Id = screenInfo.sn_num; this.Name = screenInfo.led_name; }
private LedRegistationInfo(LedRegistationInfo info) { sn_num = info.sn_num.Clone() as string; led_name = info.led_name.Clone() as string; led_width = info.led_width; led_height = info.led_height; Latitude = info.Latitude; Longitude = info.Longitude; card_num = info.card_num.Clone() as string; mac = info.mac.Clone() as string; UserID = info.UserID.Clone() as string; IsReregistering = info.IsReregistering; }
private LedRegistationInfo(LedRegistationInfo info) { sn_num = string.IsNullOrEmpty(info.sn_num)?string.Empty: info.sn_num.Clone() as string; led_name = string.IsNullOrEmpty(info.led_name) ? string.Empty : info.led_name.Clone() as string; led_width = info.led_width; led_height = info.led_height; Latitude = info.Latitude; Longitude = info.Longitude; card_num = string.IsNullOrEmpty(info.card_num) ? string.Empty : info.card_num.Clone() as string; mac = string.IsNullOrEmpty(info.mac) ? string.Empty : info.mac.Clone() as string; UserID = string.IsNullOrEmpty(info.UserID) ? string.Empty : info.UserID.Clone() as string; IsReregistering = info.IsReregistering; ControlSystem = info.ControlSystem; }
private LedRegistationInfo(LedRegistationInfo info) { sn_num =string.IsNullOrEmpty(info.sn_num)?string.Empty: info.sn_num.Clone() as string; led_name = string.IsNullOrEmpty(info.led_name) ? string.Empty : info.led_name.Clone() as string; led_width = info.led_width; led_height = info.led_height; Latitude = info.Latitude; Longitude = info.Longitude; card_num = string.IsNullOrEmpty(info.card_num) ? string.Empty : info.card_num.Clone() as string; mac = string.IsNullOrEmpty(info.mac) ? string.Empty : info.mac.Clone() as string; UserID = string.IsNullOrEmpty(info.UserID) ? string.Empty : info.UserID.Clone() as string; IsReregistering = info.IsReregistering; ControlSystem = info.ControlSystem; }
public object Clone() { LedRegistationInfo info = new LedRegistationInfo(this); return(info); }
public object Clone() { LedRegistationInfo info = new LedRegistationInfo(this); return info; }
private LedRegistationInfo GetLedRegistationInfo(DataOneRegistationInfo oneInfo) { LedRegistationInfo ledregister = new LedRegistationInfo(); ledregister.sn_num = oneInfo.Sn; ledregister.UserID = UserId; ledregister.Latitude = oneInfo.Latitude; ledregister.led_height = oneInfo.Height; ledregister.led_width = oneInfo.Width; ledregister.led_name = oneInfo.Led_name; ledregister.Longitude = oneInfo.Longitude; ledregister.mac = oneInfo.Mac; ledregister.card_num = oneInfo.Card_NumSave; ledregister.ControlSystem = ControlSystemType.LED_Nova_M3; return ledregister; }