示例#1
0
        private void cursosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Tools.FormManager.FindAndOpenForm("MantCursosForm"))
            {
                return;
            }
            var formToShow = new Forms.Mantenimientos.MantCursosForm {
                MdiParent = this
            };

            formToShow.Show();
        }
示例#2
0
        private void creaCursoBtn_Click(object sender, EventArgs e)
        {
            if (Tools.FormManager.FindAndOpenForm("MantCursosForm"))
            {
                return;
            }
            var formParent = this.Parent.FindForm();
            var formToShow = new Forms.Mantenimientos.MantCursosForm()
            {
                MdiParent = formParent
            };

            this.closeButton1.PerformClick();
            formToShow.Show();
            formToShow.bindingNavigatorAddNewItem.PerformClick();
        }