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 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); }