Exemplo n.º 1
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ContactAddForm addForm = new ContactAddForm(serviceProvider);

            addForm.MdiParent = this;
            addForm.Show();
        }
Exemplo n.º 2
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ContactAddForm addContactForm = new ContactAddForm(_contactManager);

            addContactForm.MdiParent   = this;
            addContactForm.WindowState = FormWindowState.Maximized;
            addContactForm.Show();
        }