예제 #1
0
 private void Add_Item_Button_Click(object sender, EventArgs e)
 {
     Grocery_List_Menu.Visible = false;
     Name_Parse.Clear();
     Price_Parse.Clear();
     PopBoxMKII.Visible = true;
 }
예제 #2
0
        private void confirm_Button_Click(object sender, EventArgs e)
        {
            name_box = Name_Parse.Text;
            try
            {
                price_box = decimal.Parse(Price_Parse.Text);
            }
            catch
            {
                MessageBox.Show("Please enter a numeric price.");
            }
            Visible = false;
            Name_Parse.Clear();
            Price_Parse.Clear();

            AddItem();
        }