public UserPreferences(YellowstonePathology.Business.User.UserPreference userPreference) { this.m_UserPreferenceList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetAllUserPreferences(); this.m_MolecularLabelFormatCollection = YellowstonePathology.Business.Label.Model.LabelFormatCollection.GetMolecularLabelCollection(); this.m_CassettePrinterCollection = new Business.Label.Model.CassettePrinterCollection(); this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.Instance; System.Printing.LocalPrintServer printServer = new System.Printing.LocalPrintServer(); this.m_PrintQueueCollection = printServer.GetPrintQueues(new[] { System.Printing.EnumeratedPrintQueueTypes.Local, System.Printing.EnumeratedPrintQueueTypes.Connections }); this.m_ApplicationVersion = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetApplicationVersion(this); InitializeComponent(); if (userPreference == null) { this.m_UserPreference = new Business.User.UserPreference(); this.m_HostNameEnabled = true; } else { this.m_UserPreference = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullUserPreference(userPreference.HostName, this); this.m_HostNameEnabled = false; } this.m_PageScannerCollection = new Business.Common.PageScannerCollection(); this.DataContext = this; this.Loaded += new RoutedEventHandler(UserPreferences_Loaded); this.Closing += UserPreferences_Closing; }
public UserPreferences() { this.m_MolecularLabelFormatCollection = YellowstonePathology.Business.Label.Model.LabelFormatCollection.GetMolecularLabelCollection(); this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities(); this.m_LocationCollection = new Business.Facility.Model.LocationCollection(); System.Printing.LocalPrintServer printServer = new System.Printing.LocalPrintServer(); this.m_PrintQueueCollection = printServer.GetPrintQueues(new[] { System.Printing.EnumeratedPrintQueueTypes.Local, System.Printing.EnumeratedPrintQueueTypes.Connections }); this.m_ApplicationVersion = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetApplicationVersion(this); InitializeComponent(); this.DataContext = this; this.Loaded += new RoutedEventHandler(UserPreferences_Loaded); this.Closing += UserPreferences_Closing; }
public UserPreferences() { this.m_MolecularLabelFormatCollection = YellowstonePathology.Business.Label.Model.LabelFormatCollection.GetMolecularLabelCollection(); this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities(); this.m_LocationCollection = new Business.Facility.Model.LocationCollection(); System.Printing.LocalPrintServer printServer = new System.Printing.LocalPrintServer(); this.m_PrintQueueCollection = printServer.GetPrintQueues(new[] { System.Printing.EnumeratedPrintQueueTypes.Local, System.Printing.EnumeratedPrintQueueTypes.Connections }); this.m_ApplicationVersion = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetApplicationVersion(this); this.m_ProcessorRunCollection = Business.Surgical.ProcessorRunCollection.GetAll(true); InitializeComponent(); this.DataContext = this; this.Loaded += new RoutedEventHandler(UserPreferences_Loaded); this.Closing += UserPreferences_Closing; }