public TypingWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, PageNavigationWindow secondMonitorWindow, System.Windows.Controls.TabItem writer) { this.m_Writer = writer; this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler; this.m_SecondMonitorWindow = secondMonitorWindow; if (secondMonitorWindow != null) { this.m_SecondMonitorWindow.WindowState = WindowState.Maximized; } this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance; this.m_TypingUI = new YellowstonePathology.Business.Typing.TypingUIV2(this.m_Writer); this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_TypingUI.AccessionOrder); this.m_DocumentViewer = new DocumentWorkspace(); this.m_LocalDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Local); this.m_ServerDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Server); InitializeComponent(); this.m_TypingShortcutUserControl = new TypingShortcutUserControl(this.m_SystemIdentity, this.m_Writer); this.TabItemTypingShortCuts.Content = this.m_TypingShortcutUserControl; this.DataContext = this.m_TypingUI; this.ContentControlDocument.Content = this.m_DocumentViewer; this.ListViewLocalDictation.ItemsSource = this.m_LocalDictationList; this.ListViewServerDictation.ItemsSource = this.m_ServerDictationList; this.Unloaded += new RoutedEventHandler(TypingWorkspace_Unloaded); }
public TypingWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, PageNavigationWindow secondMonitorWindow, System.Windows.Controls.TabItem writer) { this.m_Writer = writer; this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler; this.m_SecondMonitorWindow = secondMonitorWindow; if (secondMonitorWindow != null) { this.m_SecondMonitorWindow.WindowState = WindowState.Maximized; } this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance; this.CommandBindingClose = new CommandBinding(MainWindow.ApplicationClosingCommand, HandleAppClosing); this.CommandBindingShowCaseDocument = new CommandBinding(MainWindow.ShowCaseDocumentCommand, ShowCaseDocument, ItemIsPresent); this.CommandBindingShowOrderForm = new CommandBinding(MainWindow.ShowOrderFormCommand, this.ShowOrderForm, ItemIsSelected); this.CommandBindingShowAmendmentDialog = new CommandBinding(MainWindow.ShowAmendmentDialogCommand, this.ShowAmendmentDialog, ItemIsSelected); this.CommandBindings.Add(this.CommandBindingClose); this.CommandBindings.Add(this.CommandBindingShowCaseDocument); this.CommandBindings.Add(this.CommandBindingShowOrderForm); this.CommandBindings.Add(this.CommandBindingShowAmendmentDialog); this.m_TypingUI = new YellowstonePathology.Business.Typing.TypingUIV2(this.m_Writer); this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_TypingUI.AccessionOrder); this.m_DocumentViewer = new DocumentWorkspace(); this.m_LocalDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Local); this.m_ServerDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Server); InitializeComponent(); this.m_TypingShortcutUserControl = new TypingShortcutUserControl(this.m_SystemIdentity); this.TabItemTypingShortCuts.Content = this.m_TypingShortcutUserControl; this.DataContext = this.m_TypingUI; this.ContentControlDocument.Content = this.m_DocumentViewer; this.ListViewLocalDictation.ItemsSource = this.m_LocalDictationList; this.ListViewServerDictation.ItemsSource = this.m_ServerDictationList; this.Unloaded += new RoutedEventHandler(TypingWorkspace_Unloaded); }