private void Form1_Load(object sender, EventArgs e) { double CreditCostInput; CreditCostInput = Convert.ToInt32(My_Dialogs.InputBox("Enter the cost of credit: ")); textbox_CreditCost.Text = CreditCostInput.ToString(); }
private void button_Reset_Click(object sender, EventArgs e) { string ResetCoins; ResetCoins = ((label_TwoPoundCount.Text) = (label_TwoPoundTotal.Text) = (label_OnePoundCount.Text) = (label_OnePoundTotal.Text) = (label_FiftyPenceCount.Text) = (label_FiftyPenceTotal.Text) = (label_TwentyPenceCount.Text) = (label_TwentyPenceTotal.Text) = (label_TenPenceCount.Text) = (label_TenPenceTotal.Text) = (label_FivePenceCount.Text) = (label_FivePenceTotal.Text) = (label_TwoPenceCount.Text) = (label_TwoPenceTotal.Text) = (label_OnePenceCount.Text) = (label_OnePenceTotal.Text) = "0"); string ResetTotal; ResetTotal = ((textbox_CreditCost.Text) = (textbox_CreditTotal.Text) = (textbox_Total.Text) = (textbox_TotalPence.Text) = "0"); double CreditCostInput; CreditCostInput = Convert.ToInt32(My_Dialogs.InputBox("Enter the cost of credit: ")); textbox_CreditCost.Text = CreditCostInput.ToString(); }