Exemple #1
0
        // Events handling section
        private void Form1_Load(object sender, EventArgs e)
        {
            // create an instance of the validator info class
            NV11 = new CNV11();
            btnHalt.Enabled = false;

            if (Properties.Settings.Default.CommWindow)
            {
                NV11.CommsLog.Show();
                logTickBox.Checked = true;
            }
            else
                logTickBox.Checked = false;
        }
Exemple #2
0
        // Events handling section
        private void Form1_Load(object sender, EventArgs e)
        {
            // create an instance of the validator info class
            NV11            = new CNV11();
            btnHalt.Enabled = false;

            if (Properties.Settings.Default.CommWindow)
            {
                NV11.CommsLog.Show();
                logTickBox.Checked = true;
            }
            else
            {
                logTickBox.Checked = false;
            }
        }
Exemple #3
0
        /* Events handling section */

        private void Form1_Load(object sender, EventArgs e)
        {
            // Create instances of the validator classes
            Hopper = new CHopper();
            NV11   = new CNV11();
            if (Hopper == null || NV11 == null)
            {
                MessageBox.Show("Error with memory allocation, exiting", "ERROR");
                Application.Exit();
            }

            // Load settings
            logTickBox.Checked = Properties.Settings.Default.Comms;

            // Position comms windows
            Point p = Location;

            p.Y += this.Height;
            Hopper.Comms.Location = p;
            p.X += Hopper.Comms.Width;
            NV11.CommsLog.Location = p;
        }