diff --git a/BGS/Report.cs b/BGS/Report.cs index 6dc358d..039d206 100644 --- a/BGS/Report.cs +++ b/BGS/Report.cs @@ -93,7 +93,7 @@ namespace NonaBGS.BGS { entry.Entries.Add(e); entry.System = current_system; entry.Station = current_station; - entry.Faction = (e as RedeemVoucherEntry).Factions.First(); + entry.Faction = (e as RedeemVoucherEntry).Factions.FirstOrDefault() ?? ""; entry.ControllingFaction = controlling_faction; collate = true; diff --git a/CombatZoneDialog.xaml b/CombatZoneDialog.xaml index 08a6bef..8ca9f0e 100644 --- a/CombatZoneDialog.xaml +++ b/CombatZoneDialog.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:NonaBGS" mc:Ignorable="d" - Title="Add Combat Zone Wins" Height="150" Width="370" WindowStartupLocation="CenterOwner"> + Title="Add Combat Zone Wins" Height="150" Width="370" Icon="NONA.ico" WindowStartupLocation="CenterOwner"> diff --git a/MainWindow.xaml b/MainWindow.xaml index 994c202..2498e63 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -7,7 +7,7 @@ xmlns:local="clr-namespace:NonaBGS" xmlns:BGS="clr-namespace:NonaBGS.BGS" xmlns:Util="clr-namespace:NonaBGS.Util" d:DataContext="{d:DesignInstance Type=Util:AppConfig}" x:Name="window" x:Class="NonaBGS.MainWindow" mc:Ignorable="d" - Title="Nova Navy BGS Helper" Height="513.8" Width="885.658"> + Title="Nova Navy BGS Helper" Height="520" Width="890" Icon="NONA.ico"> diff --git a/NONA.ico b/NONA.ico new file mode 100644 index 0000000..c3072de Binary files /dev/null and b/NONA.ico differ diff --git a/ProgressDialog.xaml b/ProgressDialog.xaml index 6bcd30b..94a8964 100644 --- a/ProgressDialog.xaml +++ b/ProgressDialog.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:NonaBGS" mc:Ignorable="d" - Title="Progress" Height="100" Width="450"> + Title="Progress" Height="100" Width="450" Icon="NONA.ico"> diff --git a/Resources.Designer.cs b/Resources.Designer.cs new file mode 100644 index 0000000..5a8db54 --- /dev/null +++ b/Resources.Designer.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace NonaBGS { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NonaBGS.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon NONA { + get { + object obj = ResourceManager.GetObject("NONA", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + } +} diff --git a/Resources.resx b/Resources.resx new file mode 100644 index 0000000..6d1af6f --- /dev/null +++ b/Resources.resx @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + Resources\NONA.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/Resources/NONA.ico b/Resources/NONA.ico new file mode 100644 index 0000000..c3072de Binary files /dev/null and b/Resources/NONA.ico differ diff --git a/Util/AppConfig.cs b/Util/AppConfig.cs index ab72813..0d7264e 100644 --- a/Util/AppConfig.cs +++ b/Util/AppConfig.cs @@ -1,9 +1,4 @@ -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.ComponentModel; namespace NonaBGS.Util { public class AppConfig : INotifyPropertyChanged { diff --git a/logo_v4.png b/logo_v4.png new file mode 100644 index 0000000..f6c1e76 Binary files /dev/null and b/logo_v4.png differ diff --git a/logo_v4_bg.png b/logo_v4_bg.png new file mode 100644 index 0000000..d343345 Binary files /dev/null and b/logo_v4_bg.png differ diff --git a/nonabgs.csproj b/nonabgs.csproj index 9cafe17..50624f4 100644 --- a/nonabgs.csproj +++ b/nonabgs.csproj @@ -7,7 +7,7 @@ {73BFB315-C808-40E7-8D69-B651F875880C} WinExe NonaBGS - nonabgs + NonaBGS v4.7.2 512 {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} @@ -37,6 +37,9 @@ NonaBGSApplication + + NONA.ico + packages\AutoCompleteTextBox.1.1.1\lib\net472\AutoCompleteTextBox.dll @@ -81,6 +84,11 @@ + + True + True + Resources.resx + @@ -134,6 +142,10 @@ Settings.settings True + + ResXFileCodeGenerator + Resources.Designer.cs + ResXFileCodeGenerator Resources.Designer.cs @@ -170,5 +182,15 @@ PreserveNewest + + + + + + + + + + \ No newline at end of file