Exemplo n.º 1
0
        /// <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;
            }
        }
Exemplo n.º 2
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.Opts != null)
     {
         this.Opts.Close();
         this.Opts = null;
     }
 }