コード例 #1
0
 public void ShowSwitchToDialog()
 {
     if (!SwitchToDialog.IsInUse)
     {
         FocusManager.SetFocusedElement((DependencyObject)this.applicationWindow, (IInputElement)this.applicationWindow);
         new SwitchToDialog((IWindowService)this, this.viewService).ShowDialog();
     }
     else
     {
         SwitchToDialog.FocusCurrentInstance();
     }
 }
コード例 #2
0
ファイル: SwitchToDialog.cs プロジェクト: radtek/Shopdrawing
 protected override void OnClosed(EventArgs e)
 {
     if (!this.cancel)
     {
         DocumentViewReference documentViewReference = (DocumentViewReference)this.documentViewReferencesView.CurrentItem;
         if (documentViewReference != null)
         {
             this.viewService.ActiveView = (IView)documentViewReference.DocumentView;
         }
     }
     this.windowService.ReturnFocus();
     SwitchToDialog.currentlyActiveDialog = (SwitchToDialog)null;
     base.OnClosed(e);
 }
コード例 #3
0
ファイル: SwitchToDialog.cs プロジェクト: radtek/Shopdrawing
 protected override void OnInitialized(EventArgs e)
 {
     SwitchToDialog.currentlyActiveDialog = this;
     base.OnInitialized(e);
 }