public SensorForm(QuestionForm parentForm) : this() { this.parent = parentForm; this.controller = parentForm.controller; this.controller.HeadMove += controller_HeadMove; }
public VisionForm(QuestionForm mainForm) : this() { this.parent = mainForm; this.controller = mainForm.controller; this.controller.HeadMove += controller_HeadMove; this.controller.NewFrame += controller_NewFrame; }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { if (questionForm == null || questionForm.IsDisposed) { questionForm = new QuestionForm(); questionForm.MdiParent = this; } questionForm.Show(); }