コード例 #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();
        }
コード例 #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();
            }
        }
コード例 #3
0
 public SettingsForm(MainForm main, SettingsController controller)
 {
     InitializeComponent();
     this.MainForm   = main;
     this.Controller = controller;
 }
コード例 #4
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     LoadSettings();
     Settings = new SettingsController(this);
     ApplySettings();
 }