private void XtraFormDoctorDetail_Load(object sender, EventArgs e) { DepartmentSolClient departmentSolClient = Extensions.Extensions.getDepartmentSolClient(); departmentBindingSource.DataSource = departmentSolClient.Departments(true, false); departmentSolClient.Close(); DegreeSolClient degreeSolClient = Extensions.Extensions.GetDegreeSolClient(); degreeBindingSource.DataSource = degreeSolClient.Degrees(true); degreeSolClient.Close(); bindingSourceMail.DataSource = doctorMails; bindingSourcePhones.DataSource = doctorPhones; if (this.Text == "Doktor Detay") { barButtonItemCancelNewDoctor.Enabled = false; textEditMail.Visible = false; textEditPhone.Visible = false; simpleButtonNewMail.Visible = false; simpleButtonNewPhone.Visible = false; labelControlMail.Visible = false; LabelControlName.Visible = false; this.Size = new Size(650, 513); } }
private void XtraFormDiagnosis_Load(object sender, EventArgs e) { if (GlobalVariables.Departments.IsNull()) { DepartmentSolClient client = Extensions.Extensions.getDepartmentSolClient(); GlobalVariables.Departments = new List <Department>(client.Departments(true, false)); } departmentBindingSource.DataSource = GlobalVariables.Departments; }
public static void GetDepartments(bool refresh = false) { if (GlobalVariables.Departments.IsNotNull() && !refresh) { return; } DepartmentSolClient client = Extensions.Extensions.getDepartmentSolClient(); GlobalVariables.Departments = client.Departments(true, true).ToList(); }
private void RefreshData(int i) { if (i == 0 || i == 1) { DepartmentSolClient client = Extensions.Extensions.getDepartmentSolClient(); bindingSourceDepartment.DataSource = client.Departments(true, false).ToList(); client.Close(); } if (i == 0 || i == 2) { DegreeSolClient client1 = Extensions.Extensions.GetDegreeSolClient(); bindingSourceDegree.DataSource = client1.Degrees(true); client1.Close(); } }