Code cleanup

This commit is contained in:
Brett Hewitson 2021-12-09 20:41:47 +10:00
parent 72a0c342c3
commit 65a8ee426b
5 changed files with 5 additions and 6 deletions

View file

@ -106,6 +106,9 @@
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="DotNetZip, Version=1.16.0.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL"> <Reference Include="DotNetZip, Version=1.16.0.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
<HintPath>..\packages\DotNetZip.1.16.0\lib\net40\DotNetZip.dll</HintPath> <HintPath>..\packages\DotNetZip.1.16.0\lib\net40\DotNetZip.dll</HintPath>

View file

@ -3,9 +3,6 @@ using ServerManagerTool.Common.Model;
using ServerManagerTool.Lib.ViewModel; using ServerManagerTool.Lib.ViewModel;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq; using System.Linq;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using System.Windows; using System.Windows;

View file

@ -413,7 +413,7 @@ namespace ServerManagerTool
} }
finally finally
{ {
Environment.Exit(0); Environment.Exit(exitCode);
} }
} }

View file

@ -422,7 +422,7 @@ namespace ServerManagerTool
} }
finally finally
{ {
Environment.Exit(0); Environment.Exit(exitCode);
} }
} }

View file

@ -316,7 +316,6 @@ namespace ServerManagerTool
inputBox.Visibility = Visibility.Collapsed; inputBox.Visibility = Visibility.Collapsed;
dockPanel.IsEnabled = true; dockPanel.IsEnabled = true;
PlayerInfo player;
var inputText = inputTextBox.Text; var inputText = inputTextBox.Text;
switch (this.CurrentInputWindowMode) switch (this.CurrentInputWindowMode)