Exemplo n.º 1
0
 private void SaveSettings()
 {
     try
     {
         // textboxes
         Boxes.Save();
     }
     catch (Exception ex)
     {
         mf.Tls.ShowHelp(ex.Message, this.Text, 3000, true);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        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);
            }
        }