private void proveedoresToolStripMenuItem_Click(object sender, EventArgs e) { if (Application.OpenForms["Proveedores"] != null) { Application.OpenForms["Proveedores"].Activate(); } else { Proveedores frm = new Proveedores(); frm.MdiParent = this; frm.Show(); } }
private void button6_Click(object sender, EventArgs e) { Proveedores frm = new Proveedores(); frm.ShowDialog(); this.proveedoresTableAdapter.FillByActivoEmpresa(promowork_dataDataSet.Proveedores, VariablesGlobales.nIdEmpresaActual); }
private void partObrasDataGridView_DoubleClick(object sender, EventArgs e) { if (Application.OpenForms["Proveedores"] != null) { Application.OpenForms["Proveedores"].Activate(); } else { Proveedores frm = new Proveedores(); frm.MdiParent = this.MdiParent; frm.LoadFiltro(Convert.ToInt32(partObrasDataGridView.CurrentRow.Cells["IdProveedor"].Value)); frm.Show(); } }