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(); }
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); }