示例#1
0
        private void GetNewAppointmentList()
        {
            //checkBox2_CheckedChanged(this, null);

            //loadingCircle1.Enabled = true;
            //loadingCircle1.Visible = true;
            //loadingCircle1.Active = true;
            fastDataListView1.Visible = false;

            if (appts != null)
                appts.ReleaseListeners(this);

            appts = new AppointmentList();
            if (checkBox1.Checked)
                appts.Date = dateTimePicker1.Value.ToShortDateString();
            else
                appts.Date = null;

            if (comboBox2.SelectedItem != null)
            {
                appts.clinicId = ((Clinic) comboBox2.SelectedItem).clinicID;
            }
            //appts.groupName = SessionManager.Instance.UserGroup;
            appts.NameOrMrn = textBoxFilterData.Text;
            appts.AddHandlersWithLoad(AppointmentListChanged,
                                      AppointmentListLoaded,
                                      AppointmentChanged);
        }