public static AgregarSucursal Instance()
 {
     if (((frmInstance == null) || (frmInstance.IsDisposed == true)))
     {
         frmInstance = new AgregarSucursal();
     }
     frmInstance.BringToFront();
     return frmInstance;
 }
 private void btnEditar_Click(object sender, EventArgs e)
 {
     if (tblSUCURSALES.CurrentCell != null && tblSUCURSALES.SelectedRows.Count == 1)
     {
         SelectedSucursal();
         if (SELECTED != null)
         {
             AgregarSucursal suc = new AgregarSucursal(SELECTED);
             suc.ShowDialog();
         }
     }
     else
     {
         MessageBox.Show("SELECCIONE SUCURSAL A ACTUALIZAR", "VALIDACION DE DATOS", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
 private void AGREGAR(object sender, EventArgs e)
 {
     AgregarSucursal suc = new AgregarSucursal();
     suc.ShowDialog();
 }