Azavea.NijPredictivePolicing.AcsAlchemistGui.MainForm.MainForm_Load C# (CSharp) Method

MainForm_Load() private method

Initialize the controls and whatnot
private MainForm_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void MainForm_Load(object sender, EventArgs e)
        {
            try
            {
                ShowLoadingSpinner();

                //TODO: special initializer for the logger / or something to get the output stream before the copyright / etc is shown

                var appender = new TextboxAppender(this.txtLogConsole);
                FormController.Instance.InitLogging(appender);

                //wait until after the form is loaded to do this, we want to show the log output on the form
                FormController.Instance.Initialize();

                //
                // Initialize the rest of the form
                //

                this.LoadFonts();
                this.PopulateLists();
                this.AddDefaultTooltips();
                this.SmartToggler();

                this.FixWeirdStyles();

                this.MinimumSize = new Size(800, 650);

                this.PopulateControls();
            }
            catch (Exception ex)
            {
                this.DisplayException("Form Load", ex);
            }
            finally
            {
                HideLoadingSpinner();
            }
        }