示例#1
0
        /**************************************************************************************************/

        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            ClearControls();

            patientRecordHeader1.setPatient(SessionManager.Instance.GetActivePatient());

            loadingCircle1.Visible = true;
            loadingCircle1.Enabled = true;

            if (proband != null)
            {
                proband.ReleaseListeners(this);
            }

            proband = e.newActivePatient;
            if (proband != null)
            {
                Enabled = true;
                proband.AddHandlersWithLoad(null, activePatientLoaded, null);

                backgroundWorker1.RunWorkerAsync();
            }
            else
            {
                Enabled = false;
            }
        }
示例#2
0
        /**************************************************************************************************/

        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            if (e.sendingView != this)
            {
                InitSelectedRelative();
            }

            FillControls();
        }
示例#3
0
        /**************************************************************************************************/
        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            if (proband != null)
            {
                proband.ReleaseListeners(this);
            }

            InitSelectedRelative();
        }
示例#4
0
 /**************************************************************************************************/
 private void NewActivePatient(object sender, NewActivePatientEventArgs e)
 {
     foreach (Control c in panel2.Controls)
     {
         TextBox t = (TextBox)c;
         t.Text = "";
     }
     InitNewPatient();
 }
示例#5
0
 private void NewActivePatient(object sender, NewActivePatientEventArgs e)
 {
     if (e.newActivePatient != null)
     {
         flowLayoutPanel1.Enabled = true;
     }
     else
     {
         flowLayoutPanel1.Enabled = false;
     }
 }
示例#6
0
        /**************************************************************************************************/
        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            ClearExistingNotes();

            patientRecordHeader1.setPatient(e.newActivePatient);

            SessionManager.Instance.GetActivePatient().Tasks.AddHandlersWithLoad(
                ActivePatientTaskListChanged,
                ActivePatientTasksLoaded,
                ActivePatientTasksChanged);
        }
示例#7
0
        /**************************************************************************************************/

        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            //if (backgroundWorker1.IsBusy)
            //{
            //    backgroundWorker1.CancelAsync();
            //}
            proband.ReleaseListeners(this);
            listView1.Items.Clear();

            InitNewPatient();
        }
示例#8
0
        /**************************************************************************************************/
        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            if (backgroundWorker1.IsBusy)
            {
                backgroundWorker1.CancelAsync();
            }

            listView1.Items.Clear();

            InitNewPatient();
        }
示例#9
0
        /**************************************************************************************************/
        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            flowLayoutPanel1.Enabled = false;

            if (proband != null)
            {
                proband.ReleaseListeners(this);
            }

            proband = e.newActivePatient;
            proband.AddHandlersWithLoad(null, activePatientLoaded, null);
        }
示例#10
0
        /**************************************************************************************************/
        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            //ClearControls();

            if (proband != null)
            {
                proband.ReleaseListeners(this);
            }

            proband = e.newActivePatient;
            proband.AddHandlersWithLoad(null, activePatientLoaded, null);
        }
示例#11
0
 void NewActivePatientEventHandler(object sender, NewActivePatientEventArgs e)
 {
     InitNewPatient();
 }
示例#12
0
 /**************************************************************************************************/
 private void NewActivePatient(object sender, NewActivePatientEventArgs e)
 {
     patientRecordHeader1.setPatient(e.newActivePatient);
 }
示例#13
0
文件: LabsView.cs 项目: mahitosh/HRA4
 /**************************************************************************************************/
 private void NewActivePatient(object sender, NewActivePatientEventArgs e)
 {
     InitNewPatient();
 }
示例#14
0
        /**************************************************************************************************/

        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            InitSelectedRelative();
        }
示例#15
0
 /**************************************************************************************************/
 private void NewActivePatient(object sender, NewActivePatientEventArgs e)
 {
     e.newActivePatient.FHx.AddHandlersWithLoad(FHChanged, FHLoaded, null);
 }
示例#16
0
        /**************************************************************************************************/

        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            proband.ReleaseListeners(this);

            InitNewPatient();
        }