예제 #1
0
        private void Save_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(BrokenItemName.Text) || string.IsNullOrEmpty(BrokenQuantity.Value.ToString()))
            {
                errM.Message = "All Feilds mark with asterisk(*) Are Required";
                errM.Show();
            }
            else
            {
                ItemLogic.AddBrokenItem(BrokenItemName.Text, BrokenQuantity.Value.ToString(), Comment.Text);
                //errM.Message = "New item details saved successfully";
                //errM.Show();

                Hide();
            }
        }