コード例 #1
0
ファイル: mainForm.cs プロジェクト: rs3d/WinLess
        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);
            }
        }
コード例 #2
0
ファイル: mainForm.cs プロジェクト: michaud/WinLess
        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);
            }
        }