示例#1
0
 /// <summary>
 /// Displays the TP Calcualtor window, or, if already displayed,
 /// sets focus to the window
 /// </summary>
 private void DisplayTPCalculator()
 {
     if (this.tpCalculatorView == null || !this.tpCalculatorView.IsVisible)
     {
         this.tpCalculatorView = new TPCalculatorView();
         this.tpCalculatorView.Show();
     }
     else
     {
         this.tpCalculatorView.Focus();
     }
 }
示例#2
0
 /// <summary>
 /// Displays the TP Calculator window, or, if already displayed,
 /// sets focus to the window
 /// </summary>
 public void DisplayTPCalculator()
 {
     if (this.tpCalculatorView == null || !this.tpCalculatorView.IsVisible)
     {
         this.tpCalculatorView = new TPCalculatorView();
         this.Container.ComposeParts(this.tpCalculatorView);
         this.tpCalculatorView.Show();
     }
     else
     {
         this.tpCalculatorView.Focus();
     }
 }