コード例 #1
0
        private void CommunicationTimeline_Load(object sender, EventArgs e)
        {
            SessionManager.Instance.NewActivePatient += NewActivePatient;

            proband = SessionManager.Instance.GetActivePatient();
            if (proband != null)
                proband.AddHandlersWithLoad(null, activePatientLoaded, null);
        }
コード例 #2
0
        /**************************************************************************************************/
        private void PendingTasksSummaryView_Load(object sender, EventArgs e)
        {
            SessionManager.Instance.NewActivePatient += NewActivePatient;

            proband = SessionManager.Instance.GetActivePatient();
            if (proband != null)
                proband.AddHandlersWithLoad(null, activePatientLoaded, null);
        }
コード例 #3
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);
        }
コード例 #4
0
ファイル: MedicationsView.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        private void InitNewPatient()
        {
            //  get active patinet object from session manager
            proband = SessionManager.Instance.GetActivePatient();

            if (proband != null)
            {
                proband.AddHandlersWithLoad(activePatientChanged,activePatientLoaded,null);

            }
        }
コード例 #5
0
        /**************************************************************************************************/
        private void NewActivePatient(object sender, NewActivePatientEventArgs e)
        {
            //ClearControls();

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

            if (e.newActivePatient != null)
            {
                proband = e.newActivePatient;
                proband.AddHandlersWithLoad(null, activePatientLoaded, null);
            }
        }
コード例 #6
0
ファイル: PedigreeImageView.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        private void InitSelectedRelative()
        {
            proband = SessionManager.Instance.GetActivePatient();

            if (proband != null)
            {
                proband.AddHandlersWithLoad(activePatientChanged, activePatientLoaded, null);

                pedGen = new PedigreeGenerator(pictureBox1.Width, pictureBox1.Height);
                pedGen.showBrcaScores = showBrcaScores;
                pedGen.showMmrScores = showMmrScores;

                Bitmap b = pedGen.GeneratePedigreeImage();
                pictureBox1.Image = b;
            }
        }
コード例 #7
0
ファイル: PediatricRecsView.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        private void InitNewPatient()
        {
            //  get active patient object from session manager
            proband = SessionManager.Instance.GetActivePatient();

            ClearControls();

            if (proband != null)
            {
                loadingCircle1.Visible = true;
                loadingCircle1.Enabled = true;
                label1.Visible = false;

                proband.AddHandlersWithLoad(activePatientChanged, activePatientLoaded, null);

            }
        }
コード例 #8
0
        /**************************************************************************************************/
        private void PatientCommunicationView_Load(object sender, EventArgs e)
        {
            //this.winFormHtmlEditor1.BtnImage.Click += winFormHtmlEditor1_BtnImage_Click;
            winFormHtmlEditor1.ToolbarItemOverrider.ImageButtonClicked += winFormHtmlEditor1_BtnImage_Click;

            winFormHtmlEditor1.EditorMode = SpiceLogic.HtmlEditorControl.Domain.BOs.EditorModes.ReadOnly_Preview;

            htmlEditorPanel.Visible = false;
            NoPreviewPanel.Visible = false;

            if (!ViewClosing)
            {
                SessionManager.Instance.NewActivePatient += NewActivePatient;
                proband = SessionManager.Instance.GetActivePatient();
                if (proband != null)
                {
                    proband.AddHandlersWithLoad(null, activePatientLoaded, null);
                    loadingCircle1.Enabled = true;
                    loadingCircle1.Visible = true;

                }
                else
                {
                    Enabled = false;
                }
            }
            try
            {
                string dicPath = Environment.GetEnvironmentVariable("appdata") +  @"\microsoft\uproof";
                if (Directory.Exists(dicPath))
                {
                    foreach (string s in Directory.GetFiles(dicPath, "*.dic", SearchOption.TopDirectoryOnly))
                    {
                        winFormHtmlEditor1.SpellCheckOptions.DictionaryFile.UserDictionaryFilePath = s;
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.Instance.WriteToLog(ex.ToString());
            }
        }
コード例 #9
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;
            }
        }
コード例 #10
0
ファイル: PatientRecordHeader.cs プロジェクト: mahitosh/HRA4
        public void setPatient(Patient proband)
        {
            if (proband != null)
            {
                PCP.Text = "";

                if (patient != null)
                {
                    patient.ReleaseListeners(this);
                    patient.Providers.ReleaseListeners(this);
                }
                patient = proband;
                Providers = patient.Providers;
                if (patient != null)
                {
                    patient.AddHandlersWithLoad(activePatientChanged, activePatientLoaded, null);
                    patient.Providers.AddHandlersWithLoad(null, ProvidersLoaded, null);
                }
            }
            else
            {
                PatientName.Text = "";
                HomePhone.Text = "";
                age.Text = "";
                MRN.Text = "";
                CellPhone.Text = "";
                DOB.Text = "";
                WorkPhone.Text = "";
                PCP.Text = "";

                if (patient != null)
                {
                    patient.ReleaseListeners(this);
                    patient.Providers.ReleaseListeners(this);
                }
                patient = proband;
            }
        }
コード例 #11
0
        /**************************************************************************************************/
        private void InitNewPatient()
        {
            //  get active patient object from session manager
            proband = SessionManager.Instance.GetActivePatient();

            ClearControls();

            if (proband != null)
            {
                proband.AddHandlersWithLoad(activePatientChanged, activePatientLoaded, null);
                proband.FHx.AddHandlersWithLoad(FHChanged, FHLoaded, FHItemChanged);
            }
        }