diff options
author | sr55 <[email protected]> | 2013-09-08 14:17:50 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-09-08 14:17:50 +0000 |
commit | d6f2df1984b93a44435acfe1cf34271c1cf9b924 (patch) | |
tree | c47068f6030a6b933cab568ffc8619c8853f933c | |
parent | 676d0003ab7f955b6d6521195eb05d7917318909 (diff) |
WinGui: Remove system info from about window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5777 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AboutViewModel.cs | 42 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/AboutView.xaml | 8 |
2 files changed, 0 insertions, 50 deletions
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 @@ -24,37 +24,11 @@ namespace HandBrakeWPF.ViewModels public class AboutViewModel : ViewModelBase, IAboutViewModel
{
/// <summary>
- /// The system info.
- /// </summary>
- private string systemInfo;
-
- /// <summary>
/// Initializes a new instance of the <see cref="AboutViewModel"/> class.
/// </summary>
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();
}
/// <summary>
@@ -69,22 +43,6 @@ namespace HandBrakeWPF.ViewModels }
/// <summary>
- /// Gets or sets the system info.
- /// </summary>
- public string SystemInformation
- {
- get
- {
- return this.systemInfo;
- }
- set
- {
- this.systemInfo = value;
- this.NotifyOfPropertyChange("SystemInfo");
- }
- }
-
- /// <summary>
/// Close this window.
/// </summary>
public void Close()
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 @@ <RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0"
@@ -45,12 +43,6 @@ <TextBox Text="{x:Static Properties:Resources.About_GPL}" Grid.Row="2" Margin="10,0,10,10" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" />
- <TextBlock Grid.Row="3" Margin="5,10,0,5" Text="System Information: " />
-
- <TextBox Text="{Binding SystemInformation}" Grid.Row="4" Margin="10,0,10,10" HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" />
-
-
</Grid>
</Grid>
|