Exemple #1
0
 public static frmArticulo GetInstance()
 {
     if (_instancia == null)
     {
         _instancia = new frmArticulo();
     }
     return(_instancia);
 }
Exemple #2
0
 private void dgvCategoria_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (txtFlag.Text == "1")
     {
         frmArticulo Art = frmArticulo.GetInstance();
         if (dgvCategoria.CurrentRow != null)
         {
             Art.SetCategoria(dgvCategoria.CurrentRow.Cells[1].Value.ToString(),
                              dgvCategoria.CurrentRow.Cells[2].Value.ToString());
             Art.Show();
             Close();
         }
     }
 }