Exemple #1
0
 protected void OnFamiliaDeProductosActionActivated(object sender, EventArgs e)
 {
     familiaproductosdialog rcd = new familiaproductosdialog(this);
     try
     {
         rcd.Run();
         rcd.Destroy();
     }
     catch (MySql.Data.MySqlClient.MySqlException ex)
     {
         rcd.Destroy();
     #if DEBUG
         Console.WriteLine(ex.Message);
     #endif
     }
 }
        protected void OnButtonAgregarFamiliaClicked(object sender, EventArgs e)
        {
            familiaproductosdialog familia = new familiaproductosdialog(this);
            try {
                familia.Run ();
                familia.Destroy ();
            } catch (MySql.Data.MySqlClient.MySqlException ex) {
                familia.Destroy ();

                Console.WriteLine(ex.Message);

            }
        }