public ControlPanelForm() { InitializeComponent(); home = new homeServer("COM3"); //TODO find the com port home.dataChange += updateFormHandler; cam1form = null; cam2form = null; }
// 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(); } }