Beispiel #1
0
        private void Form1_MainLogicChanged(object sender, EventArgs e)
        {
            textBox1.Text = MainLogic.WorkingDirectory;
            ListUtil.AssignCheckedListBoxItems(CheckedListBox, MainLogic.SubfolderPaths.ToList(), MainLogic.WhitelistedSubfolderPaths.ToList());

            var canGo = System.IO.Directory.Exists(MainLogic.WorkingDirectory);

            NextButton.Enabled              = canGo;
            CheckAllButton.Visible          = canGo;
            UncheckAllButton.Visible        = canGo;
            ReloadButton.Visible            = canGo;
            CheckedListBox.Visible          = canGo;
            CheckedListBoxLabel.Visible     = canGo;
            AboutButton.Visible             = !canGo;
            tableLayoutPanel5.Visible       = tableLayoutPanel5.Visible && !canGo;
            CheckListBoxPlaceholder.Visible = !canGo;
        }