예제 #1
0
 private void okButton_Click(object sender, EventArgs e)
 {
     SearchList.Store();
     PrefsManager.MultiboxWidth      = (int)widthSpinner.Value;
     PrefsManager.ResultHeight       = (int)heightSpinner.Value;
     PrefsManager.AutoCheckUpdate    = updateCheck.Checked;
     PrefsManager.AutoCheckFrequency = (int)ufreqSpinner.Value;
     PrefsManager.Store();
     Hide();
 }
예제 #2
0
 public MainClass()
 {
     InitializeComponent();
     FunctionManager.Setup();
     PrefsManager.Load();
     lm    = new LabelManager(this, PrefsManager.ResultHeight);
     lm.Sc = LMSelectionChanged;
     ResizeInputField();
     prefs = new Prefs();
     prefs.Hide();
     hlp = new Help();
     hlp.Hide();
     vchk = new VersionCheck();
 }
예제 #3
0
 private void Prefs_VisibleChanged(object sender, EventArgs e)
 {
     if (!Visible)
     {
         return;
     }
     SearchList.Load();
     PrefsManager.Load();
     dataView.RowCount   = SearchList.Count + 1;
     widthSpinner.Value  = PrefsManager.MultiboxWidth;
     heightSpinner.Value = PrefsManager.ResultHeight;
     updateCheck.Checked = PrefsManager.AutoCheckUpdate;
     ufreqSpinner.Value  = PrefsManager.AutoCheckFrequency;
 }