/// <summary> /// /// </summary> private void LoadModels() { List <string> data = new List <string>(); if (Ultils.GetValueRegistryKey("Models") != null) { string[] models = Ultils.GetValueRegistryKey("Models").Split(';'); foreach (var item in models) { data.Add(item); } } else { string[] models = { "ZSFLA18GA", "ZSFLA18HA", "ZSFLA18ZA", "ZSFLA32GA", "ZSFLA32HA", "ZSFLB06GA", "ZSFLB06HA", "ZSFLC15GA", "ZSFLC15HA", "ZSFLD22IA", "ZSFLE08IA", "ZSFLE09IA", "ZSBAF19IA" }; foreach (var item in models) { data.Add(item); Ultils.WriteRegistryArray("Models", item); } } cboModels.DataSource = data; }
/// <summary> /// /// </summary> private void BinDataToControls() { if (Ultils.GetValueRegistryKey("IPAddress") != null) { txtIPAddress.Text = Ultils.GetValueRegistryKey("IPAddress").ToString(); } if (Ultils.GetValueRegistryKey("Port") != null) { txtPort.Text = Ultils.GetValueRegistryKey("Port").ToString(); } if (Ultils.GetValueRegistryKey("Process") != null) { cboWindows.Text = Ultils.GetValueRegistryKey("Process").ToString(); } if (Ultils.GetValueRegistryKey("StatioNO") != null) { txtStationNO.Text = Ultils.GetValueRegistryKey("StatioNO").ToString(); } if (Ultils.GetValueRegistryKey("FileExtension") != null) { txtFileExtension.Text = Ultils.GetValueRegistryKey("FileExtension").ToString(); } if (Ultils.GetValueRegistryKey("InputLog") != null) { txtInputLog.Text = Ultils.GetValueRegistryKey("InputLog").ToString(); } if (Ultils.GetValueRegistryKey("OutputLog") != null) { txtOutputLog.Text = Ultils.GetValueRegistryKey("OutputLog").ToString(); } if (Ultils.GetValueRegistryKey("SkipWaitLogs") != null) { checkBox1.Checked = bool.Parse(Ultils.GetValueRegistryKey("SkipWaitLogs")); } }
/// <summary> /// /// </summary> private void BinDataToControls() { if (Ultils.GetValueRegistryKey("IPAddress") != null) { strIP = Ultils.GetValueRegistryKey("IPAddress").ToString(); } if (Ultils.GetValueRegistryKey("Port") != null) { strPort = Ultils.GetValueRegistryKey("Port").ToString(); } if (Ultils.GetValueRegistryKey("Process") != null) { processName = Ultils.GetValueRegistryKey("Process").ToString(); } if (Ultils.GetValueRegistryKey("StationNO") != null) { stationNo = Ultils.GetValueRegistryKey("StationNO").ToString(); } if (Ultils.GetValueRegistryKey("FileExtension") != null) { fileExtension = Ultils.GetValueRegistryKey("FileExtension").ToString(); } if (Ultils.GetValueRegistryKey("InputLog") != null) { inputLog = Ultils.GetValueRegistryKey("InputLog").ToString(); } if (Ultils.GetValueRegistryKey("OutputLog") != null) { outputLog = Ultils.GetValueRegistryKey("OutputLog").ToString(); } if (Ultils.GetValueRegistryKey("SkipWaitLogs") != null) { skipWaitLogs = bool.Parse(Ultils.GetValueRegistryKey("SkipWaitLogs")); } }