public mainForm() { try { finishedLoading = false; activeOrInActiveMainForm = this; Program.Settings = Settings.LoadSettings(); Program.Settings.DirectoryList.Initialize(); InitializeComponent(); initFilesDataGridViewCheckAllCheckBox(); foldersListBox.DataSource = Program.Settings.DirectoryList.Directories; compileResultsDataGridView.DataSource = new List<Models.CompileCommandResult>(); folderBrowserDialog = new VistaFolderBrowserDialog(); outputFileDialog = new VistaSaveFileDialog() { AddExtension = true, Filter = "*.css|*.css" }; CheckForLessUpdates(); } catch (Exception e) { ExceptionHandler.LogException(e); } }
public mainForm(bool doInitialCompile) { try { activeOrInActiveMainForm = this; InitializeComponent(); initFilesDataGridViewCheckAllCheckBox(); foldersListBox.DataSource = Program.Settings.DirectoryList.Directories; compileResultsDataGridView.DataSource = new List<Models.CompileResult>(); this.finishedLoading = false; this.doInitialCompile = doInitialCompile; } catch (Exception e) { ExceptionHandler.LogException(e); } }