Example #1
0
        private void loadSettings()
        {
            _settings = Configuration.Settings.LoadSavedSettings();

            if (Settings == null)
            {
                _log.Info("The user has not yet entered their credentials, so they will be prompted");
                MainApplicationContext.ShowMessageBox("You need to enter your credentials.");

                //We need the main form to create the initial options
                settingsForm.Show();
            }
        }
Example #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
#if (DEBUG)
            cmdRunCycle.Visible = true;
#endif

            if (Settings == null)
            {
                _log.Info("Saved options could not be found, so a new set with default options is being created");
                Settings             = new Configuration.Settings();
                ForceEnteringOptions = true;
            }
            populateForm();
        }