protected override InteractiveFigure createNewFigure() { if (_main_form.InvokeRequired) { return((InteractiveFigure)_main_form.Invoke(new Func <InteractiveFigure>(this.createNewFigure))); } else { var tmp_form = new InteractiveFigureForm(); var tmp_context = new InteractiveFigure(tmp_form); tmp_form.Show(); return(tmp_context); } }
public InteractiveFigure(InteractiveFigureForm host_form) : base(host_form.PlotSurface) { this.HostForm = host_form; this.HostForm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(HostForm_FormClosed); }