Exemple #1
0
        // Events handling section

        private void Form1_Load(object sender, EventArgs e)
        {
            // create an instance of the validator info class
            Validator       = new CValidator();
            btnHalt.Enabled = false;

            // Position comms window
            Point p = new Point(Location.X, Location.Y);

            p.X += this.Width;
            Validator.CommsLog.Location = p;

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

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

            // 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;
            Validator.CommsLog.Location = p;
        }