Esempio n. 1
0
        private void Save_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(CategoryName.Text) || string.IsNullOrEmpty(CategoryDescription.Text))
            {
                errM.Message = "All Feilds mark with asterisk(*) Are Required";
                errM.Show();
            }
            else
            {
                ItemLogic.AddCategory(CategoryName.Text, CategoryDescription.Text);

                sm.Message = "New category details saved successfully";
                sm.Show();

                Hide();
                //ShowInTaskbar = false;
                //new AddCustomer().ShowDialog();
            }
        }