/// <summary> /// Constructor. /// </summary> public MainForm() { InitializeComponent(); Opts = new Options(); // If not running on Windows NT, don't use the Windows API if (Environment.OSVersion.Platform != PlatformID.Win32NT) { this.checkBox1.Visible = false; this.checkBox1.Checked = false; } }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { if (this.Opts != null) { this.Opts.Close(); this.Opts = null; } }