private void SaveSettings() { try { // textboxes Boxes.Save(); } catch (Exception ex) { mf.Tls.ShowHelp(ex.Message, this.Text, 3000, true); } }
private void SaveSettings() { try { // textboxes Boxes.Save(); // check boxes for (int i = 0; i < CKs.Length; i++) { mf.Tls.SaveProperty(CKs[i].Name, CKs[i].Checked.ToString()); } } catch (Exception ex) { mf.Tls.ShowHelp(ex.Message, this.Text, 3000, true); } }
private void SaveSettings() { try { // textboxes Boxes.Save(); // combo boxes mf.Tls.SaveProperty("GPSreceiver", cbReceiver.SelectedIndex.ToString()); mf.Tls.SaveProperty("IMU", cbIMU.SelectedIndex.ToString()); mf.Tls.SaveProperty("RelayControl", cbRelayControl.SelectedIndex.ToString()); // check boxes for (int i = 0; i < CKs.Length; i++) { mf.Tls.SaveProperty(CKs[i].Name, CKs[i].Checked.ToString()); } } catch (Exception ex) { mf.Tls.ShowHelp(ex.Message, this.Text, 3000, true); } }