private void tiposDePagosToolStripMenuItem_Click(object sender, EventArgs e) { if (Application.OpenForms["Tipos"] != null) { Application.OpenForms["Tipos"].Activate(); } else { Tipos frm = new Tipos(); frm.MdiParent = this; frm.Show(); } }
private void salariosTiposDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 1) { Tipos frm = new Tipos(); frm.ShowDialog(); this.tiposTableAdapter.Fill(this.promowork_dataDataSet.Tipos); } }