private void BindingParameter(LedPanel panel) { if (panel == null) { return; } this.txtCardType.Text = panel.CardType.ToString(); this.txtHeight.Text = panel.Height.ToString(); this.txtWidth.Text = panel.Width.ToString(); int scanTypeIndex = panel.RoutingSetting.ScanTypeIndex; int routingIndex = panel.RoutingSetting.RoutingIndex; if (panel.OEPolarity == 1) { this.txtOEPolarity.Text = formMain.ML.GetStr("formCloudCardParameter_HighLevel"); } else { this.txtOEPolarity.Text = formMain.ML.GetStr("formCloudCardParameter_LowLevel"); } if (panel.DataPolarity == 1) { this.txtDataPolarity.Text = formMain.ML.GetStr("formCloudCardParameter_HighLevel"); } else { this.txtDataPolarity.Text = formMain.ML.GetStr("formCloudCardParameter_LowLevel"); } this.picColorMode.Image = this.DrawColorMode(panel.ColorMode - LedColorMode.R); this.txtRouting.Text = "\r\n" + formRouting.GetRoutingString(scanTypeIndex, routingIndex); }
public TabLedPanel(LedPanel ledPanelDevice) { InitializeComponent(); this.DataContext = ledPanelDevice; ledPanel = ledPanelDevice; DmxDevice = ledPanelDevice; }
private void formPanelSelectForGroupSending_Load(object sender, EventArgs e) { if (Program.IsforeignTradeMode) { base.Icon = Resources.AppIconV5; } else { base.Icon = Resources.AppIcon; } this.isCloud = false; this.pnlMode.Visible = false; this.rdoLocal.Checked = true; this.rdoCloud.Checked = false; if (this.IsCloudLogin) { this.pnlMode.Visible = true; LedPanel selectedPanel = formMain.ledsys.SelectedPanel; if (selectedPanel != null && selectedPanel.GetType() == typeof(LedPanelCloud)) { this.rdoLocal.Checked = false; this.rdoCloud.Checked = true; } } this.LoadTreeView(); }
public formUSBWrite(LedPanel pPanel) { this.InitializeComponent(); base.Size = new System.Drawing.Size(470, 400); formMain.ML.NowFormID = formUSBWrite.formID; this.Text = formMain.ML.GetStr("formUSBWrite_FormText"); this.zhGroupBox_USBOption.Text = formMain.ML.GetStr("formUSBWrite_GroupBox_USBOption"); this.label1_PanelParam.Text = formMain.ML.GetStr("formUSBWrite_label_PanelParam"); this.label2_Scantype.Text = formMain.ML.GetStr("formUSBWrite_label_Scantype"); this.label3_Lumiance.Text = formMain.ML.GetStr("formUSBWrite_label_Lumiance"); this.label4_OffOn.Text = formMain.ML.GetStr("formUSBWrite_label_OFFandON"); this.DataCheckBox.Text = formMain.ML.GetStr("formUSBWrite_CheckBox_DisplayData"); this.TimingCheckBox.Text = formMain.ML.GetStr("formUSBWrite_CheckBox_Timing"); this.button_AddOneMinute.Text = formMain.ML.GetStr("formUSBWrite_Button_AddOneMinute"); this.label_SelectFlash.Text = formMain.ML.GetStr("formUSBWrite_label_SelectFlash"); this.SelUdiskLabel.Text = formMain.ML.GetStr("formUSBWrite_label_SelUdisk"); this.UsbSaveButton.Text = formMain.ML.GetStr("formUSBWrite_ButtonUsbSave"); this.panel = pPanel; this.updataUdiskList(); if (this.UsbListComboBox.Items.Count > 0) { this.UsbListComboBox.SelectedIndex = 0; } else { this.UsbListComboBox.Text = "无"; } this.DataCheckBox.Checked = true; }
public formPanelSelectForItem(LedPanel panel) { this.InitializeComponent(); this.originalPanel = panel; this.mode = ExecuteMode.CopyPanelItems; this.DisplayLanuageText(); }
private bool HasContentOverlength(LedPanel panel, ref string msg) { bool result = false; msg = string.Empty; foreach (LedItem current in panel.Items) { foreach (LedSubarea current2 in current.Subareas) { foreach (LedContent current3 in current2.Contents) { if (current3.Type == LedContentType.TextPicture) { LedPictureText ledPictureText = current3 as LedPictureText; if (ledPictureText.EffectsSetting.EntryMode > 2 && ledPictureText.EffectsSetting.EntryMode < 7 && ledPictureText.EffectiveLength > 65536) { switch (ledPictureText.PictureTextType) { case LedPictureTextType.Text: case LedPictureTextType.MultilineText: case LedPictureTextType.Table: result = true; msg = formMain.ML.GetStr("Message_Data_Has_Exceeded_The_Maximum_Display_Range"); break; } } } } } } return(result); }
public void Edit(LedDText pText, LedPanel pPanel) { this.panel = pPanel; this.mar_Text = pText; this.cmbBackColor.Visible = false; this.chkCoupletWord.Visible = false; this.cmbFontSize.Visible = false; this.btnOneWordOneColor.Visible = false; int num = this.btnFontBold.Location.X - this.cmbFontSize.Location.X; int num2 = num + (this.btnOneWordOneColor.Location.X + this.btnOneWordOneColor.Width - (this.btnFontStrikeout.Location.X + this.btnFontStrikeout.Width)); this.btnFontBold.Location = new System.Drawing.Point(this.btnFontBold.Location.X - num, this.btnFontBold.Location.Y); this.btnFontItalic.Location = new System.Drawing.Point(this.btnFontItalic.Location.X - num, this.btnFontItalic.Location.Y); this.btnFontUnderline.Location = new System.Drawing.Point(this.btnFontUnderline.Location.X - num, this.btnFontUnderline.Location.Y); this.btnFontStrikeout.Location = new System.Drawing.Point(this.btnFontStrikeout.Location.X - num, this.btnFontStrikeout.Location.Y); this.cmbColor.Location = new System.Drawing.Point(this.cmbColor.Location.X - num2, this.cmbColor.Location.Y); this.nudWordSpace.Location = new System.Drawing.Point(this.nudWordSpace.Location.X - num2, this.nudWordSpace.Location.Y); try { this.InitControl(); this.Binding(); } catch { } }
private void saveSinglePanelWifiData(string pSavePath) { LedPanel selectedPanel = formMain.ledsys.SelectedPanel; if (selectedPanel == null) { MessageBox.Show(formMain.ML.GetStr("NETCARD_message_Save_Failed")); return; } ProcessWiFi processWiFi = new ProcessWiFi(); processWiFi.PanelBytes = selectedPanel.ToBytes(); processWiFi.TimerSwitchBytes = selectedPanel.TimerSwitch.ToBytes(); processWiFi.LuminanceBytes = selectedPanel.Luminance.ToBytes(); processWiFi.BmpDataBytes = selectedPanel.ToItemBmpDataBytes(); processWiFi.ItemBytes = selectedPanel.ToItemBytes(); protocol_data_integration protocol_data_integration = new protocol_data_integration(); byte[] array = protocol_data_integration.WritingData_WIFI_Pack(processWiFi); if (array != null) { FileStream fileStream = new FileStream(pSavePath, FileMode.Create); fileStream.Write(array, 0, array.Length); fileStream.Close(); MessageBox.Show(formMain.ML.GetStr("NETCARD_message_Save_Successed")); base.Close(); return; } MessageBox.Show(formMain.ML.GetStr("NETCARD_message_Save_Failed")); }
public formDisplay(LedPanel pPanel) { this.InitializeComponent(); formMain.ML.NowFormID = formDisplay.formID; this.Load_Parameters(); formDisplay.panel = pPanel; this.DisplayItem(formDisplay.panel.SelectedItem); }
public bool CheckAnimationAndBackground(LedPanel _this_Panel) { bool result = false; for (int i = 0; i < _this_Panel.Items.Count; i++) { LedItem ledItem = _this_Panel.Items[i]; if (ledItem.Background.Enabled) { result = true; break; } for (int j = 0; j < ledItem.Subareas.Count; j++) { LedSubarea ledSubarea = ledItem.Subareas[j]; if (ledSubarea.Type == LedSubareaType.Animation) { result = true; break; } if (ledSubarea.Type == LedSubareaType.PictureText) { for (int k = 0; k < ledSubarea.Contents.Count; k++) { LedPictureText ledPictureText = (LedPictureText)ledSubarea.Contents[k]; if (ledPictureText.PictureTextType == LedPictureTextType.Animation) { result = true; break; } if (ledPictureText.Background.Enabled) { result = true; break; } } } else if (ledSubarea.Type == LedSubareaType.Subtitle) { LedDText ledDText = (LedDText)ledSubarea.SelectedContent; if (ledDText.Background.Enabled) { result = true; break; } } else if (ledSubarea.SelectedContent.Background.Enabled) { result = true; break; } } } this.isAnimation = result; return result; }
public formGPRSAdvancedSettings(LedPanel pPanel) { this.InitializeComponent(); this.panel = pPanel; this.Text = formMain.ML.GetStr("formGPRSAdvancedSettings_FormText"); this.chkCloudServer.Text = formMain.ML.GetStr("formGPRSAdvancedSettings_CheckBox_CloudServerMode"); this.lblCloudServerUserName.Text = formMain.ML.GetStr("formGPRSAdvancedSettings_Label_CloudSeverUserName"); this.lblAPN.Text = formMain.ML.GetStr("formGPRSAdvancedSettings_Label_APN"); this.lblUsb.Text = formMain.ML.GetStr("formGPRSAdvancedSettings_Label_USB"); this.btnCloudServerSave.Text = formMain.ML.GetStr("formGPRSAdvancedSettings_Button_CloudServerSave"); }
private bool CheckRepeatStringSubarea(LedPanel _this_Panel, ref string msg) { bool result = false; msg = string.Empty; List<string[]> list = new List<string[]>(); foreach (LedItem current in _this_Panel.Items) { foreach (LedSubarea current2 in current.Subareas) { if (current2.Type == LedSubareaType.String) { list.Add(new string[] { current.TextName, current2.SelectedContent.ID }); } } } List<int> list2 = new List<int>(); for (int i = 0; i < list.Count - 1; i++) { if (!list2.Contains(i)) { string[] array = list[i]; string text = string.Empty; for (int j = i + 1; j < list.Count; j++) { if (!list2.Contains(j)) { string[] array2 = list[j]; if (array[1] == array2[1]) { list2.Add(j); if (!string.IsNullOrEmpty(text)) { text += "、"; } text += array2[0]; } } } if (!string.IsNullOrEmpty(text)) { msg += string.Format(formMain.ML.GetStr("Message_Repeat_String_Subarea"), text.Contains(array[0]) ? text : string.Format("{0}、{1}", array[0], text), array[1], "\r\n"); } } } if (!string.IsNullOrEmpty(msg)) { result = true; } return result; }
public void Edit(LedString pString) { this.panel = formMain.ledsys.SelectedPanel; this.stringContent = pString; try { this.Binding(); } catch { } }
public Screen_Display_Class() { this.screen_num = 0; this.state_message = string.Empty; this.send_progress = 0; this.panel_no = null; this.fault_message = string.Empty; this.send_data = null; this.isSendCompleted = false; this.resendCount = 0; this.send_state = 0; }
public formUSBUpdate() { this.InitializeComponent(); formMain.ML.NowFormID = formUSBUpdate.formID; this.panel = new LedPanel(); this.Text = formMain.ML.GetStr("FormUSBUpdate_FormText"); this.groupBox4.Text = formMain.ML.GetStr("FormUSBUpdate_groupBox_ProgramUpgrade"); this.CodeCheckBox.Text = formMain.ML.GetStr("FormUSBUpdate_CodeCheckBox_UpgradeProgram"); this.CodeButton.Text = formMain.ML.GetStr("FormUSBUpdate_Button_Browse"); this.SelUdiskLabel.Text = formMain.ML.GetStr("FormUSBUpdate_Label_Select_Udisk"); this.UsbSaveButton.Text = formMain.ML.GetStr("FormUSBUpdate_Button_UsbSave"); }
public formChangeAddress(LedPanel pPanel, formMain pMain) { this.InitializeComponent(); this.panel = pPanel; this.fm = pMain; this.Text = formMain.ML.GetStr("formChangeAddress_FormText"); this.groupBox1.Text = formMain.ML.GetStr("formChangeAddress_groupBox_CardAddressAndBaudRate"); this.label1.Text = formMain.ML.GetStr("formChangeAddress_label_CardAddress"); this.label4.Text = formMain.ML.GetStr("formChangeAddress_label_BaudRate"); this.button_Add_Save.Text = formMain.ML.GetStr("formChangeAddress_button_SaveSetting"); this.button_Add_Send.Text = formMain.ML.GetStr("formChangeAddress_button_SetTheSend"); this.button_Close.Text = formMain.ML.GetStr("formChangeAddress_button_Close"); }
private void GetAnimationAndBackground(LedPanel _this_Panel) { for (int i = 0; i < _this_Panel.Items.Count; i++) { LedItem ledItem = _this_Panel.Items[i]; if (ledItem.Background.Enabled) { this.MakeAnimation(new System.Drawing.Size(_this_Panel.Width, _this_Panel.Height), ledItem.Background); } for (int j = 0; j < ledItem.Subareas.Count; j++) { LedSubarea ledSubarea = ledItem.Subareas[j]; if (ledSubarea.Type == LedSubareaType.Animation) { LedAnimation ledAnimation = (LedAnimation)ledSubarea.SelectedContent; this.MakeAnimation(ledAnimation); if (ledAnimation.Background.Enabled) { this.MakeAnimation(ledSubarea.Size, ledAnimation.Background); } } else if (ledSubarea.Type == LedSubareaType.PictureText) { for (int k = 0; k < ledSubarea.Contents.Count; k++) { LedPictureText ledPictureText = (LedPictureText)ledSubarea.Contents[k]; if (ledPictureText.PictureTextType == LedPictureTextType.Animation) { this.MakeAnimation((LedAnimation)ledPictureText); } if (ledPictureText.Background.Enabled) { this.MakeAnimation(ledSubarea.Size, ledPictureText.Background); } } } else if (ledSubarea.Type == LedSubareaType.Subtitle) { LedDText ledDText = (LedDText)ledSubarea.SelectedContent; if (ledDText.Background.Enabled) { this.MakeAnimation(ledSubarea.Size, ledDText.Background); } } else if (ledSubarea.SelectedContent.Background.Enabled) { this.MakeAnimation(ledSubarea.Size, ledSubarea.SelectedContent.Background); } } } }
public formButtonFunctionConfiguration() { this.InitializeComponent(); this.Text = formMain.ML.GetStr("formButtonFunctionConfiguration_FormText"); this.lblOption.Text = formMain.ML.GetStr("formButtonFunctionConfiguration_Label_Option"); this.lblUsb.Text = formMain.ML.GetStr("formUSBWrite_label_SelUdisk"); this.btnSave.Text = formMain.ML.GetStr("UpdateButton_Save"); this.cboOption.Items.Clear(); this.cboOption.Items.Add("测试功能"); this.cboOption.Items.Add("按钮控制循环切换节目"); this.cboOption.Items.Add("电平控制切换节目"); formMain.str_item_comboBox(this.cboOption, "formButtonFunctionConfiguration_ComboBox_Option", null); this.panel = formMain.Ledsys.SelectedPanel; }
private bool CheckEmptyMarquee(LedPanel _this_Panel) { for (int i = 0; i < _this_Panel.Items.Count; i++) { foreach (LedSubarea current in _this_Panel.Items[i].Subareas) { if (current.Type == LedSubareaType.PictureText && current.Contents.Count == 0) { return true; } } } return false; }
public formSendSingle(object objData, string pOperation, LedPanel pPanel, bool pOk, LedCmdType pCommand, formMain fmain) { this.InitializeComponent(); formSendSingle.LastSendResultObject = null; this.ShowOK = pOk; this.command = pCommand; this.commData = objData; this.operation = pOperation; this.panel = pPanel; this.fm = fmain; base.Text = pOperation; base.Size = new System.Drawing.Size(425, 89); base.TopMost = true; }
public void Edit(LedDText pText) { this.ContextMenuStripDisplayLan(); this.panel = formMain.ledsys.SelectedPanel; this.mar_Text = pText; this.cmbBackColor.Visible = false; try { this.InitControl(); this.Binding(); } catch { } this.timer1.Start(); }
private void timer1_Tick(object sender, EventArgs e) { IList <SingleCmdRecord> list = this.login_zoehoo.API_GetTerminalCmd(this.terminalId); if (list != null) { foreach (SingleCmdRecord current in list) { if (current.Description == this.mark && current.Response != null) { IList <Unpack_Results> list2 = protocol_single_cmd.Rec_Unpack(Convert.FromBase64String(current.Response), Convert.FromBase64String(current.Request)); this.thispanel = (list2[0].UnpackedData as LedPanel); this.pictureBox1.Visible = false; this.groupBox1.Enabled = true; if (this.thispanel != null) { this.TxtModel.Text = this.thispanel.CardType.ToString(); this.TxtHeight.Text = this.thispanel.Height.ToString(); this.TxtWidth.Text = this.thispanel.Width.ToString(); int scanTypeIndex = this.thispanel.RoutingSetting.ScanTypeIndex; int routingIndex = this.thispanel.RoutingSetting.RoutingIndex; this.LblRouting.Text = "\r\n" + formRouting.GetRoutingString(scanTypeIndex, routingIndex); this.thispanel.RoutingSetting.SettingFileName = LedCommonConst.RoutingSettingLFileName; byte[] array = this.thispanel.RoutingSetting.LoadScanFromFile(); if (array[0] == 1) { this.TxtOEPolarity.Text = formMain.ML.GetStr("formCloudCardParameter_HighLevel"); } else { this.TxtOEPolarity.Text = formMain.ML.GetStr("formCloudCardParameter_LowLevel"); } if (array[1] == 1) { this.TxtDataPolarity.Text = formMain.ML.GetStr("formCloudCardParameter_HighLevel"); } else { this.TxtDataPolarity.Text = formMain.ML.GetStr("formCloudCardParameter_LowLevel"); } this.CboColorModel.SelectedIndex = this.thispanel.ColorMode - LedColorMode.R; } this.timer1.Stop(); } } } }
public formWifiFindInfo(LedPanel lp) { this.returnflag = false; this.panel = lp; this.InitializeComponent(); formMain.ML.NowFormID = formWifiFindInfo.formID; this.Text = formMain.ML.GetStr("formWifiFindInfo_FormText"); this.button1.Text = formMain.ML.GetStr("formWifiFindInfo_button_Loading"); this.button2.Text = formMain.ML.GetStr("formWifiFindInfo_button_cancel"); this.label1.Text = formMain.ML.GetStr("formWifiFindInfo_label_Description"); this.dataGridView1.Columns[0].HeaderText = formMain.ML.GetStr("FD_Model"); this.dataGridView1.Columns[1].HeaderText = formMain.ML.GetStr("Display_Version"); this.dataGridView1.Columns[2].HeaderText = formMain.ML.GetStr("Display_Width"); this.dataGridView1.Columns[3].HeaderText = formMain.ML.GetStr("Display_Height"); this.dataGridView1.Columns[4].HeaderText = formMain.ML.GetStr("FD_Scan"); this.dataGridView1.Columns[5].HeaderText = formMain.ML.GetStr("Display_Colours"); }
public static string GetLuminanceString(LedPanel pPanel) { string result; if (pPanel.Luminance.RegulateMode == 0) { result = formMain.ML.GetStr("USB_Luminance_Manual") + pPanel.Luminance.ManualValue.ToString(); } else if (pPanel.Luminance.RegulateMode == 1) { result = formMain.ML.GetStr("USB_Luminance_Auto"); } else { result = formMain.ML.GetStr("USB_Luminance_Sensor"); } return(result); }
public formTimeSequence(LedTimeSequence pTimeSequence, formMain pForm) { this.InitializeComponent(); this.Text = formMain.ML.GetStr("formTimeSequence_FormText"); this.lblCKCDC.Text = formMain.ML.GetStr("formTimeSequence_label_lblCKCDC"); this.lblCKCPHA.Text = formMain.ML.GetStr("formTimeSequence_label_lblCKCPHA"); this.lblLTDelay.Text = formMain.ML.GetStr("formTimeSequence_label_lblLTDelay"); this.btnRead.Text = formMain.ML.GetStr("formTimeSequence_Button_btnRead"); this.btnSetting.Text = formMain.ML.GetStr("formTimeSequence_Button_btnSetting"); this.SelUdiskLabel.Text = formMain.ML.GetStr("formUSBWrite_label_SelUdisk"); this.checkBox_Udisk_Update.Text = formMain.ML.GetStr("formTimeSequence_checkBox_UdiskUpdate"); this.UsbSaveButton.Text = formMain.ML.GetStr("UpdateButton_Save"); this.panel = formMain.Ledsys.SelectedPanel; this.timeSequence = pTimeSequence; this.fm = pForm; this.panel_Udisk_Save.Visible = false; base.Size = new System.Drawing.Size(356, 365); }
public formStringLibrary(LedStringLibrary psl, formMain pfm) { this.InitializeComponent(); this.Text = formMain.ML.GetStr("formStringLibrary_Form_String_Library"); this.lblWidth.Text = formMain.ML.GetStr("formStringLibrary_label_Width"); this.lblHeight.Text = formMain.ML.GetStr("formStringLibrary_label_Height"); this.lblVerticalStretch.Text = formMain.ML.GetStr("formStringLibrary_label_VerticalStretch"); this.lblFontName.Text = formMain.ML.GetStr("formStringLibrary_label_FontName"); this.lblFontSize.Text = formMain.ML.GetStr("formStringLibrary_label_FontSize"); this.lblEncoding.Text = formMain.ML.GetStr("formStringLibrary_label_Encoding"); this.lblPreview.Text = formMain.ML.GetStr("formStringLibrary_label_Preview"); this.btnSetting.Text = formMain.ML.GetStr("formStringLibrary_Button_Setting"); this.chkUSBUpdate.Text = formMain.ML.GetStr("formStringLibrary_checkBox_USBUpdate"); this.lblUSB.Text = formMain.ML.GetStr("formUSBWrite_label_SelUdisk"); this.btnUSBSave.Text = formMain.ML.GetStr("UpdateButton_Save"); this.stringLibrary = psl; this.fm = pfm; this.panel = formMain.Ledsys.SelectedPanel; }
private bool GetResponse(LedPanel panel, string id) { bool flag = false; LedPanelCloud ledPanelCloud = panel as LedPanelCloud; DateTime now = DateTime.Now; while ((DateTime.Now - now).TotalSeconds < 10.0) { SingleCommandInfo singleCommandInfo = new SingleCommandService().Get(LedGlobal.CloudAccount.SessionID, ledPanelCloud.CloudID, id); if (singleCommandInfo != null) { byte[] receiveData = singleCommandInfo.ReceiveData; byte[] sendData = singleCommandInfo.SendData; if (receiveData != null && receiveData.Length > 0 && sendData != null && sendData.Length > 0) { IList <Unpack_Results> list = protocol_single_cmd.Rec_Unpack(receiveData, sendData); if (list != null && list.Count > 0 && list[0].Result_Type == 2 && list[0].Info_Erroneous_Data == info_error_type.Null) { if (list[0].Cmd_Type != LedCmdType.Send_Panel_Parameter) { flag = true; break; } TerminalInfo terminalInfo = new TerminalService().Get(LedGlobal.CloudAccount.SessionID, ledPanelCloud.DeviceID); if (terminalInfo != null && ledPanelCloud.IsEquals(terminalInfo.ToParameterArray())) { flag = true; break; } break; } } } if (flag) { break; } Thread.Sleep(1000); } return(flag); }
public formStringTest(LedString ps, formMain pfm) { this.InitializeComponent(); this.stringContent = ps; this.fm = pfm; this.panel = formMain.Ledsys.SelectedPanel; this.stringUpdate = new LedStringUpdate(); this.Text = formMain.ML.GetStr("formStringTest_Form_StringTest"); this.gbUpdate.Text = formMain.ML.GetStr("formStringTest_GroupBox_Update"); this.gbDelete.Text = formMain.ML.GetStr("formStringTest_GroupBox_Delete"); this.lblEncoding.Text = formMain.ML.GetStr("formStringTest_Label_Encoding"); this.lblIndex.Text = formMain.ML.GetStr("formStringTest_Label_Index"); this.lblDisplayWay.Text = formMain.ML.GetStr("formStringTest_Label_DisplayWay"); this.lblColor.Text = formMain.ML.GetStr("formStringTest_Label_Color"); this.lblContent.Text = formMain.ML.GetStr("formStringTest_Label_Content"); this.lblDeleteType.Text = formMain.ML.GetStr("formStringTest_Label_DeleteType"); this.lblDeleteIndex.Text = formMain.ML.GetStr("formStringTest_Label_DeleteIndex"); this.lblContentHint.Text = formMain.ML.GetStr("formStringTest_Label_ContentHint"); this.btnSend.Text = formMain.ML.GetStr("formStringTest_Button_Send"); this.btnDelete.Text = formMain.ML.GetStr("formStringTest_Button_Delete"); }
private bool CheckStringSubarea(LedPanel _this_Panel) { bool flag = false; bool flag2 = _this_Panel.IsLSeries(); for (int i = 0; i < _this_Panel.Items.Count; i++) { foreach (LedSubarea current in _this_Panel.Items[i].Subareas) { if (!flag2 && current.Type == LedSubareaType.String) { flag = true; break; } } if (flag) { break; } } return flag; }
public static string GetPanelParamString(LedPanel pPanel) { string text = ""; text = text + formMain.ML.GetStr("USB_LedModel") + pPanel.CardType.ToString().Replace("_", "-") + ","; text += formMain.ML.GetStr("USB_ColorModel"); if (pPanel.ColorMode == LedColorMode.R) { text += formMain.ML.GetStr("USB_ColorModel_Single"); } else if (pPanel.ColorMode == LedColorMode.RG | pPanel.ColorMode == LedColorMode.GR) { text += formMain.ML.GetStr("USB_ColorModel_Double"); } else { text += formMain.ML.GetStr("USB_ColorModel_Three"); } text = text + formMain.ML.GetStr("USB_Height") + pPanel.Height.ToString() + ","; text = text + formMain.ML.GetStr("USB_Width") + pPanel.Width.ToString() + ","; text += formMain.ML.GetStr("USB_OE"); if (pPanel.OEPolarity == 1) { text += formMain.ML.GetStr("USB_HightLevel"); } else { text += formMain.ML.GetStr("USB_LowLevel"); } text += formMain.ML.GetStr("USB_Data"); if (pPanel.DataPolarity == 1) { text += formMain.ML.GetStr("USB_HightLevel"); } else { text += formMain.ML.GetStr("USB_LowLevel"); } return(text); }