internal void ShowSourcesDisplay() { if (_sourcesDisplay == null) { _sourcesDisplay = new Windows.SourcesDisplayWindow(this.DataContext as ViewModels.MainViewModel); } _sourcesDisplay.Show(); _sourcesDisplay.Focus(); _sourcesDisplay.Visibility = System.Windows.Visibility.Visible; }
internal void CloseSourcesDisplay() { if (_sourcesDisplay == null) { return; } try { if (_sourcesDisplay.IsVisible) { _sourcesDisplay.Close(); } } finally { _sourcesDisplay = null; } }
internal void CloseSourcesDisplay() { if (_sourcesDisplay == null) return; try { if (_sourcesDisplay.IsVisible) _sourcesDisplay.Close(); } finally { _sourcesDisplay = null; } }