private void OpenNewChild() { var frm = new CanvasForm { MdiParent = this, Text = @"Безымянный " + currentWinNumber }; frm.Show(); currentWinNumber++; }
private void СоздатьToolStripMenuItem_Click(object sender, EventArgs e) { CanvasForm canvasForm = new CanvasForm(); canvasForm.MdiParent = this; ToolSelection += canvasForm.ToolSelectionHandler; if (drawingMethod != null) { ToolSelection?.Invoke(this, new ToolSelectionEventArgs(new Pen(choosedColor), new SolidBrush(choosedColor), drawingMethod)); } canvasForm.Show(); }