Ejemplo n.º 1
0
 private void bNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     DAL.Categories     cat = new DAL.Categories();
     UserForms.Category frm = new UserForms.Category();
     frm.btnUpdate.Visible = false;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         cat.CreateCategory(frm.CategoryName, frm.Description);
     }
     else if (frm.ShowDialog() == DialogResult.Retry)
     {
         cat.CreateCategory(frm.CategoryName, frm.Description);
         //new (frm.ShowDialog());
     }
 }
Ejemplo n.º 2
0
 private void bNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     DAL.Categories cat = new DAL.Categories();
     UserForms.Category frm = new UserForms.Category();
     frm.btnUpdate.Visible = false;
     if(frm.ShowDialog() == DialogResult.OK)
     {
         cat.CreateCategory(frm.CategoryName, frm.Description);
     }
     else if(frm.ShowDialog() == DialogResult.Retry)
     {
         cat.CreateCategory(frm.CategoryName, frm.Description);
         //new (frm.ShowDialog());
     }
 }