Beispiel #1
0
        public void Category_Selected()
        {
            if (!DataEval.IsEmptyQuery(_categoryid))
            {
                CategoryMgr myCategoryMgr = new CategoryMgr();
                Category    myCategory    = myCategoryMgr.Get_Category(_categoryid);

                tbx_Category_Name.Text = myCategory.Category_Name;
                lbl_Modify.Enabled     = true;

                MultiView_Modify.SetActiveView(View_Show);
            }
            else
            {
                lbl_Modify.Enabled = false;
            }
        }
Beispiel #2
0
        protected void lbl_Update_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                CategoryMgr myCategoryMgr = new CategoryMgr();

                e2Data[] UpdateData =
                {
                    new e2Data("CategoryID",    _categoryid),
                    new e2Data("Category_Name", tbx_Category_Name.Text)
                };

                myCategoryMgr.Edit_Category(UpdateData);

                MultiView_Modify.SetActiveView(View_Show);

                OnCategoryClick(sender, e);
            }
        }
Beispiel #3
0
 protected void lbl_Cancel_Click(object sender, EventArgs e)
 {
     MultiView_Modify.SetActiveView(View_Show);
 }
Beispiel #4
0
 protected void lbl_Modify_Click(object sender, EventArgs e)
 {
     MultiView_Modify.SetActiveView(View_Update);
 }