From d6f2df1984b93a44435acfe1cf34271c1cf9b924 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 8 Sep 2013 14:17:50 +0000 Subject: WinGui: Remove system info from about window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5777 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/AboutViewModel.cs | 42 ------------------------ win/CS/HandBrakeWPF/Views/AboutView.xaml | 8 ----- 2 files changed, 50 deletions(-) (limited to 'win') diff --git a/win/CS/HandBrakeWPF/ViewModels/AboutViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AboutViewModel.cs index f456357b7..8e5aa3b52 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AboutViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AboutViewModel.cs @@ -23,38 +23,12 @@ namespace HandBrakeWPF.ViewModels /// public class AboutViewModel : ViewModelBase, IAboutViewModel { - /// - /// The system info. - /// - private string systemInfo; - /// /// Initializes a new instance of the class. /// public AboutViewModel() { this.Title = "About HandBrake"; - - StringBuilder builder = new StringBuilder(); - foreach (var item in SystemInfo.GetGPUInfo) - { - builder.AppendLine(item); - } - - StringBuilder system = new StringBuilder(); - system.AppendLine(string.Format("Enviroment: {0}", Environment.NewLine)); - system.AppendLine(string.Format("Operating System: {0}", Environment.OSVersion)); - system.AppendLine(string.Format("CPU: {0}", SystemInfo.GetCpuCount)); - system.AppendLine(string.Format("Ram: {0} MB{1}", SystemInfo.TotalPhysicalMemory, Environment.NewLine)); - - system.AppendLine(string.Format("{0}GPU Information:{0}{0}{1}", Environment.NewLine, builder)); - - system.AppendLine(string.Format("{0}System Paths:{0}", Environment.NewLine)); - system.AppendLine(string.Format("Temp Dir: {0}", Path.GetTempPath())); - system.AppendLine(string.Format("Install Dir: {0}", Application.StartupPath)); - system.AppendLine(string.Format("Data Dir: {0}\n", Application.UserAppDataPath)); - - SystemInformation = system.ToString(); } /// @@ -68,22 +42,6 @@ namespace HandBrakeWPF.ViewModels } } - /// - /// Gets or sets the system info. - /// - public string SystemInformation - { - get - { - return this.systemInfo; - } - set - { - this.systemInfo = value; - this.NotifyOfPropertyChange("SystemInfo"); - } - } - /// /// Close this window. /// diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml b/win/CS/HandBrakeWPF/Views/AboutView.xaml index 188b3aa28..d7b63c08b 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml @@ -29,8 +29,6 @@ - - - - - - - -- cgit v1.2.3