コード例 #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
ファイル: DocumentUploadView.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/

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

            FillControls();
        }
コード例 #3
0
ファイル: PedigreeImageView.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        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
ファイル: MedicationsView.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            if (backgroundWorker1.IsBusy)
            {
                backgroundWorker1.CancelAsync();
            }

            listView1.Items.Clear();

            InitNewPatient();
        }
コード例 #9
0
ファイル: NewToDoView.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        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
ファイル: MammographyHxView.cs プロジェクト: mahitosh/HRA4
 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();
        }