Example #1
0
 public train(formDelegate sender, ArrayList from)
 {
     trainDelegate = sender;
     toolTip = Convert.ToBoolean(from[0]);
     from.Clear();
     InitializeComponent();
 }
Example #2
0
 public train(formDelegate sender, ArrayList from)
 {
     trainDelegate = sender;
     toolTip       = Convert.ToBoolean(from[0]);
     from.Clear();
     InitializeComponent();
 }
        public webcamConfig(formDelegate sender, ArrayList from, List <CameraButtonGroup> CameraButtonGroupInstance, SaveChanges save)
        {
            saveChanges        = save;
            toolTip            = (bool)from[0];
            mainSelectedWebcam = (int)from[1];
            autoscroll         = (bool)from[2];
            // buttons = (List<camButtons.ButtonColourEnum>)from[3];
            webcamConfigDelegate = sender;
            from.Clear();
            InitializeComponent();

            //this.Controls.Add(ButtonCameraControl);
            //ButtonCameraControl.Location = new Point(5, 480);
            //ButtonCameraControl.AddExistingButtons(CameraButtonGroupInstance);
            ConfigureCameraButtons(CameraButtonGroupInstance);
            //CameraButtons = CameraButtonGroupInstance;

            LevelControlBox.Left = 417;
            LevelControlBox.Top  = 18;
            this.Controls.Add(LevelControlBox);

            camButtonSetColours();

            cameraSwitch(CameraRig.ConnectedCameras[CameraRig.CurrentlyDisplayingCamera].displayButton, true);
        }
Example #4
0
 public image(formDelegate sender, ArrayList from)
 {
     jpegDelegate = sender;
     fromString   = from[0].ToString();
     initialVal   = Convert.ToInt32(from[1]);
     toolTip      = Convert.ToBoolean(from[2]);
     InitializeComponent();
 }
Example #5
0
 public image(formDelegate sender, ArrayList from)
 {
     jpegDelegate = sender;
     fromString = from[0].ToString();
     initialVal = Convert.ToInt32(from[1]);
     toolTip = Convert.ToBoolean(from[2]);
     InitializeComponent();
 }
Example #6
0
 public calibrate(formDelegate sender, ArrayList from)
 {
     InitializeComponent();
     calibrateDelegate = sender;
     toolTip           = (bool)from[0];
     cam = (int)from[1];
     from.Clear();
     //System.Diagnostics.Debug.WriteLine("calibrate received: " + cam.ToString());
 }
Example #7
0
        public schedule(formDelegate sender, ArrayList from)
        {
            scheduleDelegate = sender;
            fromString       = from[0].ToString();
            toolTip          = Convert.ToBoolean(from[1]);
            p_start          = from[2].ToString();
            p_stop           = from[3].ToString();

            InitializeComponent();
        }
        public schedule(formDelegate sender, ArrayList from)
        {
            scheduleDelegate = sender;
            fromString = from[0].ToString();
            toolTip = Convert.ToBoolean(from[1]);
            p_start = from[2].ToString();
            p_stop = from[3].ToString();

            InitializeComponent();
        }
Example #9
0
 /// <summary>
 /// Hides the form.
 /// </summary>
 private void HideForm(Form form)
 {
     if (form.InvokeRequired)
     {
         formDelegate fd = new formDelegate(HideForm);
         this.Invoke(fd, new object[] { form });
     }
     else
     {
         form.Hide();
     }
 }
Example #10
0
 internal void updateList(string ip, string mac)
 {
     if (listView.InvokeRequired)
     {
         formDelegate pointer = new formDelegate(updateList);
         Invoke(pointer, new object[] { ip, mac });
     }
     else
     {
         ListViewItem newItem = new ListViewItem(ip);
         newItem.SubItems.Add(mac);
         listView.Items.Add(newItem);
     }
 }
Example #11
0
        public calibrate(formDelegate postCalibrate, ArrayList from)
        {
            InitializeComponent();
            lblCountDown.Text = string.Empty;
            calibrateDelegate = postCalibrate;
            toolTip           = (bool)from[0];
            cam = (int)from[1];
            CameraRig.trainCam = cam;
            from.Clear();
            //string tmpStr = "www.teboweb.com/calibrate.html";
            //linkLightSpike.Links.Add(tmpStr);

            //System.Diagnostics.Debug.WriteLine("calibrate received: " + cam.ToString());
        }
        public calibrate(formDelegate postCalibrate, ArrayList from)
        {
            InitializeComponent();
            lblCountDown.Text = string.Empty;
            calibrateDelegate = postCalibrate;
            toolTip = (bool)from[0];
            cam = (int)from[1];
            CameraRig.trainCam = cam;
            from.Clear();
            //string tmpStr = "www.teboweb.com/calibrate.html";
            //linkLightSpike.Links.Add(tmpStr);

            //System.Diagnostics.Debug.WriteLine("calibrate received: " + cam.ToString());
        }
        public webcamConfig(formDelegate sender, ArrayList from)
        {
            toolTip = (bool)from[0];
            mainSelectedWebcam = (int)from[1];
            autoscroll = (bool)from[2];
            buttons = (List<int>)from[3];
            webcamConfigDelegate = sender;
            from.Clear();
            InitializeComponent();

            camButtonSetColours();

            cameraSwitch(CameraRig.rig[CameraRig.activeCam].displayButton, true);
        }
Example #14
0
        public webcamConfig(formDelegate sender, ArrayList from)
        {
            toolTip              = (bool)from[0];
            mainSelectedWebcam   = (int)from[1];
            autoscroll           = (bool)from[2];
            buttons              = (List <int>)from[3];
            webcamConfigDelegate = sender;
            from.Clear();
            InitializeComponent();

            camButtonSetColours();

            cameraSwitch(CameraRig.rig[CameraRig.activeCam].displayButton, true);
        }
        public fileprefix(formDelegate sender, ArrayList from)
        {
            InitializeComponent();

            prefixDelegate = sender;
            fromString = from[0].ToString();
            toolTip = Convert.ToBoolean(from[1]);
            p_fname = from[2].ToString();
            p_cycleStampChecked = from[3].ToString();
            p_startCycle = from[4].ToString();
            p_endCycle = from[5].ToString();
            p_currentCycle = from[6].ToString();
            p_includeStamp = Convert.ToBoolean(from[7]);
            p_displayStamp = Convert.ToBoolean(from[8]);
            groupBox21.Enabled = Convert.ToBoolean(from[12]);

            if (Convert.ToBoolean(from[12]))
            {
                p_fileLoc = from[9].ToString();
                p_fileLocDefault = from[10].ToString();
            }
        }
Example #16
0
        public fileprefix(formDelegate sender, ArrayList from)
        {
            InitializeComponent();

            prefixDelegate      = sender;
            fromString          = from[0].ToString();
            toolTip             = Convert.ToBoolean(from[1]);
            p_fname             = from[2].ToString();
            p_cycleStampChecked = from[3].ToString();
            p_startCycle        = from[4].ToString();
            p_endCycle          = from[5].ToString();
            p_currentCycle      = from[6].ToString();
            p_includeStamp      = Convert.ToBoolean(from[7]);
            p_displayStamp      = Convert.ToBoolean(from[8]);
            groupBox21.Enabled  = Convert.ToBoolean(from[12]);

            if (Convert.ToBoolean(from[12]))
            {
                p_fileLoc        = from[9].ToString();
                p_fileLocDefault = from[10].ToString();
            }
        }