/// <summary> /// Clears all fields and resets the Cashup Object. /// </summary> private void Clear() { txtbR200.Text = "0"; txtbR100.Text = "0"; txtbR50.Text = "0"; txtbR20.Text = "0"; txtbR10.Text = "0"; txtbR5.Text = "0"; txtbR2.Text = "0"; txtbR1.Text = "0"; txtb50c.Text = "0"; txtb20c.Text = "0"; txtb10c.Text = "0"; ClearDrop(); txtbxName.Text = "Name"; combxRegister.Text = "Register#"; txtbNumCheques.Text = "0"; if (!(this.date.Value == DateTime.Today)) { this.dateTimePicker1.Value = DateTime.Today; this.dateTimePicker2.Value = DateTime.Today; this.dateTimePicker3.Value = DateTime.Today; } cu = new Cashup(); }
public frmMain() { InitializeComponent(); cu = new Cashup(); date = dateTimePicker1; CheckRegNumber(); }