Пример #1
0
 private void openEDIT() // Update Form Function
 {
     try
     {
         controle   = true;
         currentCOD = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
         if (openform == false)
         {
             openform = true;
             if (cargaADD == null)
             {
                 cargaADD = new View.cargaADD();
             }
             cargaADD.Show(this);
         }
         else
         {
             cargaADD.Visible = true;
         }
     }
     catch
     {
         throw;
     }
 }
Пример #2
0
 private void Button1_Click(object sender, EventArgs e) // Insertion Form Method
 {
     controle = false;
     if (openform == false)
     {
         openform = true;
         if (cargaADD == null)
         {
             cargaADD = new View.cargaADD();
         }
         cargaADD.Show(this);
     }
     else
     {
         cargaADD.Visible = true;
     }
 }