Пример #1
0
        private void customerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CustomerListForm customerlistform = new CustomerListForm();

            customerlistform.MdiParent = this;
            customerlistform.Show();
        }
Пример #2
0
 private void customerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _customerListForm = new CustomerListForm
     {
         WindowState = FormWindowState.Maximized,
         MdiParent   = this
     };
     _customerListForm.Show();
 }
        private void müşterileriListeleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool isOpen = false;

            foreach (Form item in this.MdiChildren)
            {
                if (item is CustomerListForm)
                {
                    isOpen = true;
                }
            }

            if (isOpen == true)
            {
                clf.BringToFront();
            }
            else
            {
                clf           = new CustomerListForm();
                clf.MdiParent = this;
                clf.Show();
            }
        }