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(); }
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(); }
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; }