コード例 #1
0
ファイル: PedigreeGenerator.cs プロジェクト: mahitosh/HRA4
        public PedigreeGenerator(int Width, int Height, Patient proband)
        {
            height = Height;
            width  = Width;


            //pedigreeControl1 = new PedigreeControl();
            pedigreeControl1      = new PedigreeControl(false);
            pedigreeLegend1       = new PedigreeLegend();
            pedigreeComment1      = new PedigreeComment();
            pedigreeTitleBlock1   = new PedigreeTitleBlock();
            sysDefaultAnnotations = new PedigreeAnnotationList("-1");
            sysDefaultAnnotations.BackgroundListLoad();
            pedigreeSettingsForm1 = new PedigreeSettingsForm(sysDefaultAnnotations);

            if (proband != null)
            {
                if (proband.guiPreferences.Count == 0)
                {
                    GUIPreference gp = new GUIPreference();
                    gp.BackgroundLoadWork();
                    proband.guiPreferences.Add(gp);
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// Used to statically create a pedigree for hra views.
        /// </summary>
        /// <param name="Width"></param>
        /// <param name="Height"></param>
        public PedigreeGenerator(int Width, int Height)
        {
            height = Height;
            width  = Width;

            pedigreeControl1      = new PedigreeControl(false);
            pedigreeComment1      = new PedigreeComment();
            pedigreeTitleBlock1   = new PedigreeTitleBlock();
            pedigreeLegend1       = new PedigreeLegend(pedigreeTitleBlock1);
            sysDefaultAnnotations = SessionManager.Instance.MetaData.SystemWideDefaultPedigreePrefs.CopyAnnotations();
            pedigreeSettingsForm1 = new PedigreeSettingsForm(sysDefaultAnnotations);
        }
コード例 #3
0
 private int ComputeTitleBoxWidth(PedigreeTitleBlock pedigreeTitleBlock)
 {
     return(pedigreeTitleBlock.ComputeOptimalWidth());
 }
コード例 #4
0
 private int ComputeTitleBoxHeight(PedigreeTitleBlock pedigreeTitleBlock)
 {
     return(pedigreeTitleBlock.ComputeOptimalHeight());
 }