Пример #1
0
        public ControlPanelForm()
        {
            InitializeComponent();
            home             = new homeServer("COM3"); //TODO find the com port
            home.dataChange += updateFormHandler;

            cam1form = null;
            cam2form = null;
        }
Пример #2
0
 // View Camera 2 Button
 private void button11_Click(object sender, EventArgs e)
 {
     if (cam2form == null)
     {
         cam2form = new cameraForm(this, ref home.cam2);
         cam2form.Show();
     }
     else
     {
         cam2form.Activate();
     }
 }