Beispiel #1
0
 private void tsmiPuestos_Click(object sender, EventArgs e)
 {
     using (frmPuestos frmpuestos = new frmPuestos())
     {
         frmpuestos.MdiParent = this;
         frmpuestos.Show();
     }
 }
        //****************************************************************************************************
        //************** P U E S T O S ***********************************************************************
        //****************************************************************************************************
        private void puestoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                frmPuestos child = new frmPuestos();

                this.validaFormsDuplicados(child.GetType());

                child.MdiParent = this;

                child.Show();
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message, "Activos", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }