private void Btn_Reset_Click(object sender, EventArgs e) { Com_RPaient.DropDownStyle = ComboBoxStyle.DropDown; Com_RPaient.Focus(); Btn_PReport.Enabled = false; Com_RPaient.ResetText(); Lbl_Doctor.ResetText(); Lbl_Address.ResetText(); Lbl_Age.ResetText(); MTxt_Birthday.ResetText(); MTxt_Birthday.Visible = false; Lbl_LandLine.ResetText(); Lbl_Phone.ResetText(); Lbl_Sex.ResetText(); Lbl_Count.ResetText(); Lbl_Balance.ResetText(); Lbl_Approximate.ResetText(); DGV_Chronic.DataSource = null; DGV_Reports.DataSource = null; }
private void Com_RPaient_SelectedIndexChanged(object sender, EventArgs e) { try { if (Convert.ToInt32(Com_RPaient.SelectedValue) != 0) { MTxt_Birthday.Visible = true; Com_Patient = Convert.ToInt32(Com_RPaient.SelectedValue); } Fill_Details_Visiting(); Fill_Count(); Fill_Chronic(); Fill_Doctor_Cost(); Fill_Details_Paient(); Btn_PReport.Enabled = true; DGV_Chronic.ClearSelection(); DGV_Reports.ClearSelection(); } catch (Exception ex) { } Lbl_Doctor.Focus(); }