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);
            }
        }
Beispiel #2
0
        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();
            }
        }