//update category button
        private void xuiSuperButton1_Click(object sender, EventArgs e)
        {
            try
            {
                //text feild empty or not check
                if ((textBox1.Text != "") && (textBox2.Text != ""))
                {
                    CategoryClass obj = new CategoryClass();
                    //pass to Business layer CategoryClass
                    obj.CategoryId   = textBox1.Text;
                    obj.CategoryName = textBox2.Text;

                    if (obj.CategoryUpdate() == 1)
                    {
                        MessageBox.Show("---Updated Cateegory---");
                    }
                    else
                    {
                        MessageBox.Show("--- Cannot Update Category ---");
                    }
                }
                else
                {
                    MessageBox.Show("---please enter values !---");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                throw;
            }
        }