private void ClearControl() { ProductIdtxt.Clear(); Productnametxt.Clear(); comboBoxproduct.SelectedIndex = -1; Addprobtn.Text = "Add"; ProductIdtxt.Focus(); }
private void ResetRecords() { // dateTimePicker1.Value = DateTime.Now; ProductIdtxt.Clear(); Productnametxt.Clear(); Quantitytxt.Clear(); comboBoxproductstatus.SelectedIndex = -1; Addbtn.Text = "Add"; dateTimePicker1.Focus(); }