/// <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(); } }
/// <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(); } }