Exemplo n.º 1
0
        private void LoadSettings()
        {
            try
            {
                byte tmp;
                bool Checked;

                // textboxes
                Boxes.ReLoad();

                // combo boxes
                byte.TryParse(mf.Tls.LoadProperty("GPSreceiver"), out tmp);
                cbReceiver.SelectedIndex = tmp;

                byte.TryParse(mf.Tls.LoadProperty("IMU"), out tmp);
                cbIMU.SelectedIndex = tmp;

                byte.TryParse(mf.Tls.LoadProperty("RelayControl"), out tmp);
                cbRelayControl.SelectedIndex = tmp;

                // check boxes
                for (int i = 0; i < CKs.Length; i++)
                {
                    bool.TryParse(mf.Tls.LoadProperty(CKs[i].Name), out Checked);
                    CKs[i].Checked = Checked;
                }
            }
            catch (Exception ex)
            {
                mf.Tls.ShowHelp(ex.Message, this.Text, 3000, true);
            }
        }
Exemplo n.º 2
0
 private void LoadSettings()
 {
     try
     {
         // textboxes
         Boxes.ReLoad();
     }
     catch (Exception ex)
     {
         mf.Tls.ShowHelp(ex.Message, this.Text, 3000, true);
     }
 }
Exemplo n.º 3
0
        private void LoadSettings()
        {
            try
            {
                bool Checked;

                // textboxes
                Boxes.ReLoad();

                // check boxes
                for (int i = 0; i < CKs.Length; i++)
                {
                    bool.TryParse(mf.Tls.LoadProperty(CKs[i].Name), out Checked);
                    CKs[i].Checked = Checked;
                }
            }
            catch (Exception ex)
            {
                mf.Tls.ShowHelp(ex.Message, this.Text, 3000, true);
            }
        }