private void Contactos_Grid_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.Button == MouseButtons.Right) { switch (e.ColumnIndex) { case 2: { CargoUIForm form = new CargoUIForm(true); if (form != null && !form.IsDisposed) { form.ShowDialog(); } break; } case 6: { MunicipioUIForm form = new MunicipioUIForm(this); if (form != null && !form.IsDisposed) { form.ShowDialog(); } break; } } } }
private void Municipios_Button_Click(object sender, EventArgs e) { MunicipioUIForm form = new MunicipioUIForm(this); if (form != null && !form.IsDisposed) { form.ShowDialog(); } }
private void Municipio_CB_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode.Equals(Keys.Add) || e.KeyCode.Equals(Keys.Oemplus)) { MunicipioUIForm form = new MunicipioUIForm(this); if (form != null && !form.IsDisposed) { form.ShowDialog(); } Municipio_CB.ResetText(); } }