/// <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); }
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); } } }
public PedigreeLegend(PedigreeTitleBlock titleBlockReference) { _titleBlockReference = titleBlockReference; InitializeComponent(); }
private int ComputeTitleBoxWidth(PedigreeTitleBlock pedigreeTitleBlock) { return pedigreeTitleBlock.ComputeOptimalWidth(); }
private int ComputeTitleBoxHeight(PedigreeTitleBlock pedigreeTitleBlock) { return pedigreeTitleBlock.ComputeOptimalHeight(); }