Exemple #1
0
        private void OpenNewChild()
        {
            var frm = new CanvasForm {
                MdiParent = this, Text = @"Безымянный " + currentWinNumber
            };

            frm.Show();
            currentWinNumber++;
        }
Exemple #2
0
        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();
        }