当前位置: 首页>>代码示例>>C#>>正文


C# Model.HraModelChangedEventArgs类代码示例

本文整理汇总了C#中RiskApps3.Model.HraModelChangedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# HraModelChangedEventArgs类的具体用法?C# HraModelChangedEventArgs怎么用?C# HraModelChangedEventArgs使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


HraModelChangedEventArgs类属于RiskApps3.Model命名空间,在下文中一共展示了HraModelChangedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ageDiagnosis_Validated

        private void ageDiagnosis_Validated(object sender, EventArgs e)
        {
            foreach (ClincalObservation co in PMHHx.Observations)
            {
                if (co.disease.Equals("Bilateral Oophorectomy"))
                {
                    if ((String.IsNullOrEmpty(ageDiagnosis.Text)) || (bothOvariesRemoved.Text != "Yes"))
                    {
                        PMHHx.Observations.RemoveFromList(co, SessionManager.Instance.securityContext);
                    }
                    else
                    {
                        co.ageDiagnosis = ageDiagnosis.Text;
                        HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
                        args.Persist = true;
                        args.updatedMembers.Add(co.GetMemberByName("ageDiagnosis"));
                        co.SignalModelChanged(args);
                    }
                    return;
                }
            }

            // add the disease...
            if (bothOvariesRemoved.Text.Equals("Yes"))
            {
                ClincalObservation co2 = new ClincalObservation(PMHHx);
                co2.disease = "Bilateral Oophorectomy";
                co2.SetDiseaseDetails();
                //SessionManager.Instance.MetaData.Diseases.SetDataFromDiseaseName(ref co2);
                co2.ageDiagnosis = ageDiagnosis.Text;
                HraModelChangedEventArgs args2 = new HraModelChangedEventArgs(null);
                args2.Persist = true;
                PMHHx.Observations.AddToList(co2, args2);
            }
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:35,代码来源:BreastCancerRiskFactors.cs

示例2: button2_Click

 private void button2_Click(object sender, EventArgs e)
 {
     Task t = new Task(proband, "Task", "Pending", SessionManager.Instance.ActiveUser.ToString(), DateTime.Now);
     HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
     args.Persist = true;
     proband.Tasks.AddToList(t, args);
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:7,代码来源:NewToDoView.cs

示例3: activePatientChanged

 /**************************************************************************************************/
 private void activePatientChanged(object sender, HraModelChangedEventArgs e)
 {
     if (e.sendingView != this)
     {
         FillControls();
     }
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:8,代码来源:DemographicsView.cs

示例4: cA125ToolStripMenuItem_Click

 private void cA125ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     LabResult lr = new LabResult();
     lr.unitnum = proband.unitnum;
     lr.date = DateTime.Today;
     lr.TestDesc = "CA125";
     HraModelChangedEventArgs args = new HraModelChangedEventArgs(this);
     proband.labsHx.AddToList(lr, args);
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:9,代码来源:TestsView.cs

示例5: button1_Click

        private void button1_Click(object sender, EventArgs e)
        {
            HraModelChangedEventArgs args = new HraModelChangedEventArgs(parentView);
            args.Delete = true;

            test.SignalModelChanged(args);

            if (DeleteClicked != null)
                DeleteClicked(this, e);
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:10,代码来源:SummaryItemRow.cs

示例6: allelicStateComboBox_SelectionChangeCommitted

        private void allelicStateComboBox_SelectionChangeCommitted(object sender, EventArgs e)
        {
            HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
            geneticTestResult.allelicState = allelicStateComboBox.SelectedItem.ToString();

            args.updatedMembers.Add(geneticTestResult.GetMemberByName("allelicState"));
            geneticTestResult.SignalModelChanged(args);

            SignalOwningTestCompleted();
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:10,代码来源:GeneticTestingASOResultRow.cs

示例7: FHItemChanged

 private void FHItemChanged(object sender, HraModelChangedEventArgs e)
 {
     if (e.sendingView != this)
     {
         foreach (MemberInfo mi in e.updatedMembers)
         {
             if (HraObject.DoesAffectTestingDecision(mi))
             {
                 reCreateListOfRelativesToConsider();
                 break;
             }
         }
     }
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:14,代码来源:RelativesToConsiderView.cs

示例8: button2_Click

        private void button2_Click(object sender, EventArgs e)
        {
            Provider p = new Provider();
            p.firstName = SessionManager.Instance.ActiveUser.userFirstName;
            p.lastName = SessionManager.Instance.ActiveUser.userLastName;
            p.fullName = SessionManager.Instance.ActiveUser.userFullName;
            p.displayName = SessionManager.Instance.ActiveUser.userFullName;
            p.isApptProvider = "Yes";

            HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
            p.BackgroundPersistWork(args);

            SessionManager.Instance.ActiveUser.User_hraProviderID = p.providerID;

            args.Persist = false;

            SessionManager.Instance.MetaData.ApptProviders.AddToList(p, args);

            this.Close();
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:20,代码来源:MakeUserProviderForm.cs

示例9: activePatientChanged

 /**************************************************************************************************/
 private void activePatientChanged(object sender, HraModelChangedEventArgs e)
 {
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:4,代码来源:PediatricRecsView.cs

示例10: button1_Click

        private void button1_Click(object sender, EventArgs e)
        {
            if (pmh != null && sendingView != null)
            {
                ClincalObservation co = new ClincalObservation(pmh);
                co.disease = diseaseComboBox.Text;

                co.ageDiagnosis = AgeTextBox.Text;

                co.SetDiseaseDetails();
                HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
                args.Persist = true;

                pmh.Observations.AddToList(co, args);

                this.Close();
            }
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:18,代码来源:AddDiseasePopup.cs

示例11: theBreastImagingHxChanged

 /**************************************************************************************************/
 private void theBreastImagingHxChanged(object sender, HraModelChangedEventArgs e)
 {
     if (e.sendingView != this)
     {
         FillControls();
     }
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:8,代码来源:BreastImagingView.cs

示例12: selectedRelativeChanged

        private void selectedRelativeChanged(object sender, HraModelChangedEventArgs e)
        {
            if (this.InvokeRequired)
            {
                selectedRelativeChangedCallback srcc = new selectedRelativeChangedCallback(selectedRelativeChanged);
                object[] args = new object[2];
                args[0] = sender;
                args[2] = e;
                this.Invoke(srcc, args);
            }
            else
            {
                // handles changes to the current relative and NOT a change from one relative to another
                FillControls();
                if (e.sendingView != this)
                {
                    foreach (MemberInfo mi in e.updatedMembers)
                    {
                        switch (mi.Name)
                        {
                            case "name":
                                name.Text = selectedRelative.name;
                                break;
                            case "firstName":
                                firstName.Text = selectedRelative.firstName;
                                break;
                            case "middleName":
                                middleName.Text = selectedRelative.middleName;
                                break;
                            case "lastName":
                                lastName.Text = selectedRelative.lastName;
                                break;
                            case "title":
                                title.Text = selectedRelative.title;
                                break;
                            case "suffix":
                                suffix.Text = selectedRelative.suffix;
                                break;
                            case "gender":
                                gender.Text = selectedRelative.gender;
                                break;
                            case "maidenName":
                                maidenName.Text = selectedRelative.maidenName;
                                break;
                            case "causeOfDeath":
                                causeOfDeath.Text = selectedRelative.causeOfDeath;
                                break;
                            case "dateOfDeath":
                                dateOfDeath.Text = selectedRelative.dateOfDeath;
                                break;
                            case "dob":
                                dob.Text = selectedRelative.dob;
                                break;
                            case "dobConfidence":
                                dobConfidence.Text = selectedRelative.dobConfidence;
                                break;
                            case "dateOfDeathConfidence":
                                dateOfDeathConfidence.Text = selectedRelative.dateOfDeathConfidence;
                                break;
                            case "age":
                                age.Text = selectedRelative.age;
                                break;
                            case "vitalStatus":
                                vitalStatus.Text = selectedRelative.vitalStatus;
                                break;
                            case "city":
                                city.Text = selectedRelative.city;
                                break;
                            case "state":
                                city.Text = selectedRelative.state;
                                break;
                            case "zip":
                                zipCode.Text = selectedRelative.zip;
                                break;
                            case "adopted":
                                adopted.Text = selectedRelative.adopted;
                                break;
                            case "isAshkenazi":
                                isAshkenaziComboBox.Text = selectedRelative.Person_isAshkenazi;
                                break;
                            case "isHispanic":
                                isHispanicComboBox.Text = selectedRelative.Person_isHispanic;
                                break;
                            case "comment":
                                commentsTextBox.Text = selectedRelative.Person_comment;
                                break;

                        }
                    }
                }
            }
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:92,代码来源:RelativeDetailsView.cs

示例13: GUIPreferenceChanged

 /**************************************************************************************************/
 private void GUIPreferenceChanged(object sender, HraModelChangedEventArgs e)
 {
     foreach (MemberInfo fi in e.updatedMembers)
     {
         switch (fi.Name)
         {
             case "ShowLegend":
                 if (currentPrefs.GUIPreference_ShowLegend)
                     pedigreeLegend1.CheckForEmpty();
                 else
                     pedigreeLegend1.Visible = false;
                 break;
             case "LegendBackground":
                 pedigreeLegend1.Background = currentPrefs.GUIPreference_LegendBackground;
                 break;
             case "LegendBorder":
                 pedigreeLegend1.BorderStyle = currentPrefs.GUIPreference_LegendBorder;
                 break;
             case "LegendFont":
                 pedigreeLegend1.LegendFont = currentPrefs.GUIPreference_LegendFont;
                 break;
             case "LegendRadius":
                 pedigreeLegend1.LegendRadius = currentPrefs.GUIPreference_LegendRadius;
                 break;
             case "ShowComment":
                 pedigreeComment1.Visible = currentPrefs.GUIPreference_ShowComment;
                 break;
             case "CommentBackground":
                 pedigreeComment1.Background = currentPrefs.GUIPreference_CommentBackground;
                 break;
             case "CommentBorder":
                 pedigreeComment1.BorderStyle = currentPrefs.GUIPreference_CommentBorder;
                 break;
             case "CommentFont":
                 pedigreeComment1.CommentFont = currentPrefs.GUIPreference_CommentFont;
                 break;
             case "ShowTitle":
                 pedigreeTitleBlock1.Visible = currentPrefs.GUIPreference_ShowTitle;
                 break;
             case "NameFont":
             case "UnitnumFont":
             case "DobFont":
                 pedigreeTitleBlock1.SetFonts(currentPrefs.GUIPreference_NameFont, currentPrefs.GUIPreference_UnitnumFont, currentPrefs.GUIPreference_DobFont);
                 break;
             case "ShowName":
                 pedigreeTitleBlock1.NameVis = currentPrefs.GUIPreference_ShowName;
                 break;
             case "ShowUnitnum":
                 pedigreeTitleBlock1.MRNVis = currentPrefs.GUIPreference_ShowUnitnum;
                 break;
             case "ShowDob":
                 pedigreeTitleBlock1.DOBVis = currentPrefs.GUIPreference_ShowDob;
                 break;
             case "TitleSpacing":
                 pedigreeTitleBlock1.Spacing = currentPrefs.GUIPreference_TitleSpacing;
                 break;
             case "TitleBackground":
                 pedigreeTitleBlock1.BackColor = currentPrefs.GUIPreference_TitleBackground;
                 break;
             case "TitleBorder":
                 pedigreeTitleBlock1.BorderStyle = currentPrefs.GUIPreference_TitleBorder;
                 break;
             case "PedigreeBackground":
                 pedigreeControl1.model.parameters.BackgroundBrush = new SolidBrush(currentPrefs.GUIPreference_PedigreeBackground);
                 colorSlider1.BackColor = currentPrefs.GUIPreference_PedigreeBackground;
                 ZoomSlider.BackColor = currentPrefs.GUIPreference_PedigreeBackground;
                 break;
             case "nameWidth":
                 pedigreeControl1.model.parameters.nameWidth = currentPrefs.GUIPreference_nameWidth;
                 break;
             case "limitedEthnicity":
                 pedigreeControl1.model.parameters.limitedEthnicity = currentPrefs.GUIPreference_limitedEthnicity;
                 break;
             case "VariantFoundText":
                 pedigreeControl1.model.parameters.VariantFoundText = currentPrefs.GUIPreference_VariantFoundText;
                 break;
             case "VariantFoundVusText":
                 pedigreeControl1.model.parameters.VariantFoundVusText = currentPrefs.GUIPreference_VariantFoundVusText;
                 break;
             case "VariantNotFoundText":
                 pedigreeControl1.model.parameters.VariantNotFoundText = currentPrefs.GUIPreference_VariantNotFoundText;
                 break;
             case "VariantNotTestedText":
                 pedigreeControl1.model.parameters.VariantNotTestedText = currentPrefs.GUIPreference_VariantNotTestedText;
                 break;
             case "VariantUnknownText":
                 pedigreeControl1.model.parameters.VariantUnknownText = currentPrefs.GUIPreference_VariantUnknownText;
                 break;
             case "VariantHeteroText":
                 pedigreeControl1.model.parameters.VariantHeteroText = currentPrefs.GUIPreference_VariantHeteroText;
                 break;
             default:
                 break;
         }
     }
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:97,代码来源:PedigreeForm.cs

示例14: getBestFitExistingGuiPreference

        /**************************************************************************************************/
        private GUIPreference getBestFitExistingGuiPreference(bool exactMatchOnly)
        {
            GUIPreference bestFitGuiPreference = null;
            List<GUIPreference> localList = proband.guiPreferences.ConvertAll(x => (GUIPreference)x);
            String parentFormText = (this.ParentForm != null) ? this.ParentForm.Text : "";

            if (localList.Count == 0)
            {
                GUIPreference guiPreference;
                //String parentFormText = (this.ParentForm != null) ? this.ParentForm.Text : "";

                guiPreference = new GUIPreference(proband, DateTime.Now, this.Text, parentFormText, this.Width, this.Height);
                HraModelChangedEventArgs args = new HraModelChangedEventArgs(this);
                args.Persist = true;
                proband.guiPreferences.AddToList(guiPreference, args);
                return guiPreference;
            }
            else
            {
                GUIPreference guiPreference = null;
                foreach (GUIPreference gp in localList)
                {
                    guiPreference = gp;
                    guiPreference.ReadOnly = false;
                    guiPreference.ConsumeSettings(guiPreference);    //TODO this is kind of a hack

                    guiPreference.PersistFullObject(new HraModelChangedEventArgs(this));
                    guiPreference.GUIPreference_height = pedigreeControl1.Height;   //TODO and so is this
                    guiPreference.GUIPreference_width = pedigreeControl1.Width;     //TODO ...and this....find better places for all of this...
                }
                return guiPreference;
            }
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:34,代码来源:PedigreeForm.cs

示例15: AppointmentChanged

 private void AppointmentChanged(object sender, HraModelChangedEventArgs e)
 {
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:3,代码来源:MyScheduleView.cs


注:本文中的RiskApps3.Model.HraModelChangedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。