Beispiel #1
0
        private void ReloadButton_Click(object sender, EventArgs e)
        {
            Columns    = new List <string>();
            Values     = new Dictionary <string, Dictionary <string, bool> >();
            HiddenRows = new HashSet <int>();

            FiltersButton.Enabled = false;
            ReloadButton.Enabled  = false;

            LoadSettings();
            Settings = new SettingsController(this);
            ApplySettings();
        }
Beispiel #2
0
        private void MainForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F5)
            {
                ReloadButton.PerformClick();
            }

            if (e.KeyCode == Keys.L && e.Modifiers == Keys.Shift)
            {
                Columns    = new List <string>();
                Values     = new Dictionary <string, Dictionary <string, bool> >();
                HiddenRows = new HashSet <int>();

                FiltersButton.Enabled = false;
                ReloadButton.Enabled  = false;

                SelectFile();
                Settings = new SettingsController(this);
                ApplySettings();
            }
        }
 public SettingsForm(MainForm main, SettingsController controller)
 {
     InitializeComponent();
     this.MainForm   = main;
     this.Controller = controller;
 }
Beispiel #4
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     LoadSettings();
     Settings = new SettingsController(this);
     ApplySettings();
 }