private void VisitsForm_Load(object sender, EventArgs e) { Com_Paient.ResetText(); Com_Paient.ForeColor = Color.Gray; Com_Paient.Text = "اختيار"; Com_Doctors.ResetText(); Com_Doctors.ForeColor = Color.Gray; Com_Doctors.Text = "اختيار"; DGV_Visits.ClearSelection(); }
private void Appointment_Load(object sender, EventArgs e) { Com_Paient.ResetText(); Com_Paient.ForeColor = Color.Gray; Com_Paient.Text = "اختيار"; Com_Paient.Focus(); Com_Doctors.ResetText(); Com_Doctors.ForeColor = Color.Gray; Com_Doctors.Text = "اختيار"; DGV_Appointment.ClearSelection(); DTP_history.MinDate = Convert.ToDateTime(DateTime.Now.ToString("dd / MM / yyyy")); timer1.Start(); }