Пример #1
0
        private void btnProveedor_Click(object sender, EventArgs e)
        {
            frmProveedor frm = new frmProveedor();

            frm.MdiParent = this;
            frm.Show();
        }
Пример #2
0
        private void proveedorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmProveedor frm = new frmProveedor();

            frm.MdiParent = this;
            frm.Show();
        }
Пример #3
0
        private void btnNuevoProveedor_Click(object sender, EventArgs e)
        {
            frmProveedor frmProveedor = new frmProveedor();

            frmProveedor.ShowDialog();
            this.dgvProveedor.Refresh();
        }
Пример #4
0
        private void mnuProveedores_Click(object sender, EventArgs e)
        {
            frmProveedor frm = frmProveedor.GetInstancia();

            frm.MdiParent = this;

            frm.Show();
        }
Пример #5
0
 public static frmProveedor GetInstancia()
 {
     if (_instancia == null)
     {
         _instancia = new frmProveedor();
     }
     return(_instancia);
 }
Пример #6
0
        private void mnuProveedor_Click(object sender, EventArgs e)
        {
            frmProveedor form = new frmProveedor();

            form.MdiParent = this;

            form.Show();
            form.dataListado.ClearSelection();
        }
Пример #7
0
 public static frmProveedor GetInstancia()
 {
     if (Instancia == null)
     {
         Instancia = new frmProveedor();
         //Instancia.Disposed += new EventHandler(formProveedor_Disposed); BORRAR LUEGO
     }
     return(Instancia);
 }
        private void proveedorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmProveedor frmPro = new frmProveedor();

            frmPro.Show();
        }
Пример #9
0
 //METODO FORM CLOSING PARA ELIMINAR LA REFERENCIA DE LA INSTANCIA
 private void frmProveedor_FormClosing(object sender, FormClosingEventArgs e)
 {
     Instancia = null;
 }
 private void proveedorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmProveedor frm = new frmProveedor();
     frm.MdiParent = this;
     frm.Show();
 }
Пример #11
0
 private void frmProveedor_FormClosed(object sender, FormClosedEventArgs e)
 {
     _myFormProv = null;
 }