Example #1
0
 private void AddItemButton(object sender, EventArgs e)
 {
     string[] completedPurchase = { buyNameStr.Text, quantityStr.Text, actualСostInt.Text, notExactCostInt.Text, ShoppingList.ReturnDifference(actualСostInt.Text, notExactCostInt.Text), ShoppingList.ChekBoxStatus(ref checkBox1) };
     ShoppingList.Add(completedPurchase, ref listView1);
     button6.Visible = true;
     this.Refresh();
 }
Example #2
0
        private void AddItemButton_Click_1(object sender, EventArgs e)
        {
            string differenceInt = "sdas";

            string[] completedPurchase = { buyNameStr.Text, quantityStr.Text, actualСostInt.Text, notExactCostInt.Text, ShoppingList.ReturnDifference(actualСostInt.Text, notExactCostInt.Text), ShoppingList.ChekBoxStatus(ref checkBox1) };
            ShoppingList.Edit(completedPurchase);
        }