示例#1
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);
        }
示例#2
0
        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);
                }
            }
        }
示例#3
0
 public PedigreeLegend(PedigreeTitleBlock titleBlockReference)
 {
     _titleBlockReference = titleBlockReference;
     InitializeComponent();
 }
示例#4
0
 public PedigreeLegend(PedigreeTitleBlock titleBlockReference)
 {
     _titleBlockReference = titleBlockReference;
     InitializeComponent();
 }
示例#5
0
 private int ComputeTitleBoxWidth(PedigreeTitleBlock pedigreeTitleBlock)
 {
     return pedigreeTitleBlock.ComputeOptimalWidth();
 }
示例#6
0
 private int ComputeTitleBoxHeight(PedigreeTitleBlock pedigreeTitleBlock)
 {
     return pedigreeTitleBlock.ComputeOptimalHeight();
 }