Example #1
0
 internal static bool RestoreForm(FormSettings settings, Form form)
 {
     if (settings != null)
     {
         return(settings.RestoreForm(form));
     }
     return(false);
 }
Example #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            // Read in saved per-user settings
            if (!Settings.Default.SettingsUpgraded)
            {
                Settings.Default.Upgrade();
                Settings.Default.SettingsUpgraded = true;
                Settings.Default.Save();
            }
            FormSettings.RestoreForm(Settings.Default.MainForm, this);

            m_fIsRunning     = false;
            txtDeviceId.Text = Settings.Default.DeviceId;
            RefreshPorts();
            selComPort.SelectedItem = Settings.Default.ComPort;
        }