private void editUser_btn_Click(object sender, EventArgs e)
        {
            var editUser = new EditUserDetails();

            editUser.ShowDialog();
            //addUser.MdiParent = this;
        }
Example #2
0
        private void editUserDetailsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var OpenForms = Application.OpenForms.Cast <Form>();
            var isOpen    = OpenForms.Any(q => q.Name == "EditUserDetails");

            if (!isOpen)
            {
                var editUser = new EditUserDetails();
                editUser.MdiParent = this.MdiParent;
                editUser.Show();
            }
        }