Skip to content

Commit

Permalink
added export/import settings window
Browse files Browse the repository at this point in the history
  • Loading branch information
msarilar committed Jan 2, 2019
1 parent b28cf4b commit 90a3bf8
Show file tree
Hide file tree
Showing 18 changed files with 5,764 additions and 5,539 deletions.
1 change: 1 addition & 0 deletions EDEngineer.Models/EDEngineer.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
<Compile Include="ReleaseNote.cs" />
<Compile Include="State\StateCargo.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utils\WritablePropertiesOnlyResolver.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand Down
17 changes: 17 additions & 0 deletions EDEngineer.Models/Utils/WritablePropertiesOnlyResolver.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;

namespace EDEngineer.Models.Utils
{
public class WritablePropertiesOnlyResolver : DefaultContractResolver
{
protected override IList<JsonProperty> CreateProperties(Type type, MemberSerialization memberSerialization)
{
var props = base.CreateProperties(type, memberSerialization);
return props.Where(p => p.Writable).ToList();
}
}
}
10 changes: 10 additions & 0 deletions EDEngineer/EDEngineer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@
<Compile Include="Views\Popups\SelectLanguageWindow.xaml.cs">
<DependentUpon>SelectLanguageWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Views\Popups\SettingsExportWindow.xaml.cs">
<DependentUpon>SettingsExportWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Views\Popups\ToolWindow.cs" />
<Compile Include="Views\ShoppingListViewModel.cs" />
<Compile Include="Utils\BlueprintConverter.cs" />
<Compile Include="Utils\StringExtensions.cs" />
Expand Down Expand Up @@ -266,6 +270,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\Popups\SettingsExportWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Views\MainWindowViewModel.cs" />
Expand Down Expand Up @@ -315,6 +323,8 @@
<Resource Include="Resources\Images\rare.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\menu-export.ico" />
<None Include="Resources\menu_settings_export.ico" />
<Resource Include="Resources\menu-reload.ico" />
<Resource Include="Resources\Images\api-on.png" />
<Resource Include="Resources\Images\api-off.png" />
Expand Down
10 changes: 10 additions & 0 deletions EDEngineer/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions EDEngineer/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
<data name="menu_chart" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\menu-chart.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="menu_export" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\menu-export.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="menu_graphic_settings" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\menu-graphic-settings.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down
Loading

0 comments on commit 90a3bf8

Please sign in to comment.