示例#1
0
        // Produtos

        private void BtnSaveProd_Click(object sender, EventArgs e)
        {
            Products p        = new Products();
            FormProd formProd = new FormProd(p, FormProd.save);

            formProd.ShowDialog();
        }
示例#2
0
 private void BtnUpdateProd_Click(object sender, EventArgs e)
 {
     try
     {
         Products p = CheckProd();
         if (p != null)
         {
             FormProd formProd = new FormProd(p, FormProd.update);
             formProd.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }