private void CancelBtn_Click(object sender, EventArgs e) { DisplayRichTxBx.Clear(); FirstNameTxBx.Clear(); LastNameTxBx.Clear(); BirthdayDatePicker.Value = DateTime.Now; foreach (RadioButton r in GenderGrpBx.Controls) { r.Checked = false; } foreach (RadioButton r in BranchesGrpBx.Controls) { r.Checked = false; } foreach (CheckBox cb in HobbiesGrpBx.Controls) { cb.Checked = false; } foreach (int i in DegreeCheckListBx.CheckedIndices) { DegreeCheckListBx.SetItemCheckState(i, CheckState.Unchecked); } }
void Reset() { CINTxBx.Clear(); LastNameTxBx.Clear(); FirstNameTxBx.Clear(); BloodGrpCbBx.Text = ""; RHPlusRdBtn.Checked = false; RHMinusRdBtn.Checked = false; }
private void Reset() { CINTxBx.Clear(); LastNameTxBx.Clear(); FirstNameTxBx.Clear(); AgeTxBx.Clear(); StFmCRdBtn.Checked = false; StFmMRdBtn.Checked = false; CityCbBx.SelectedIndex = -1; }
private void Reset() { CINTxBx.Clear(); LastNameTxBx.Clear(); FirstNameTxBx.Clear(); AgeTxBx.Clear(); foreach (RadioButton r in FamStGrp.Controls) { r.Checked = false; } CityCbBx.SelectedIndex = -1; }