/// <summary> Показать окно известные проблемы </summary> public static void ShowProblems() { var windowProblems = new WindowInformation(); windowProblems.Title = Application.Current.TryFindResource(@"WindowInformation_ProblemsTitle") as string; windowProblems.WebBrowserMain.Source = new Uri(Application.Current.TryFindResource(@"WindowInformation_ProblemsUrl") as string ?? ""); windowProblems.ShowDialog(); }
/// <summary> Показать окно о программе </summary> public static void ShowAbout() { var viewModelInformation = new ViewModelInformation(); var windowAbout = new WindowInformation { DataContext = viewModelInformation, WebBrowserMain = { Source = new Uri(Application.Current.TryFindResource(@"WindowInformation_AboutUrl") as string ?? "") }, StackPanelVersion = { Visibility = Visibility.Visible } }; windowAbout.ShowDialog(); }
/// <summary> Метод открытия о программе </summary> private void OpenAbout() { WindowInformation.ShowAbout(); }