Skip to content

Commit 0100bed

Browse files
committed
Save "full path" setting
Fixes #16
1 parent 2a1906d commit 0100bed

11 files changed

Lines changed: 288 additions & 3 deletions

File tree

Dev16-.csproj

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
<Reference Include="WindowsBase" />
8383
</ItemGroup>
8484
<ItemGroup>
85-
<None Include="Properties\Settings.settings" />
85+
<None Include="OpenFileInSolutionShared\app.config" />
86+
<None Include="Properties\Settings.settings">
87+
<Generator>SettingsSingleFileGenerator</Generator>
88+
<LastGenOutput>Settings1.Designer.cs</LastGenOutput>
89+
</None>
8690
<Content Include="SharedContent\LICENSE">
8791
<IncludeInVSIX>true</IncludeInVSIX>
8892
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
@@ -94,6 +98,12 @@
9498
<ItemGroup>
9599
<Compile Include="Properties\AssemblyInfo.cs" />
96100
<Compile Include="Properties\Settings.Designer.cs" />
101+
<Compile Include="Properties\Settings1.Designer.cs">
102+
<AutoGen>True</AutoGen>
103+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
104+
<DependentUpon>Settings.settings</DependentUpon>
105+
</Compile>
106+
<Compile Include="Settings.cs" />
97107
</ItemGroup>
98108
<ItemGroup>
99109
<Content Include="SharedContent\openfileinsolution.png" />

Dev17/Dev17+.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
<ItemGroup>
4848
<Compile Include="Properties\AssemblyInfo.cs" />
4949
<Compile Include="Properties\Settings.Designer.cs" />
50+
<Compile Include="Properties\Settings1.Designer.cs">
51+
<AutoGen>True</AutoGen>
52+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
53+
<DependentUpon>Settings.settings</DependentUpon>
54+
</Compile>
5055
</ItemGroup>
5156
<ItemGroup>
5257
<Content Include="..\SharedContent\LICENSE">
@@ -55,7 +60,11 @@
5560
<VSIXSubPath>SharedContent</VSIXSubPath>
5661
<TargetPath>LICENSE</TargetPath>
5762
</Content>
58-
<None Include="Properties\Settings.settings" />
63+
<None Include="OpenFileInSolutionShared\app.config" />
64+
<None Include="Properties\Settings.settings">
65+
<Generator>SettingsSingleFileGenerator</Generator>
66+
<LastGenOutput>Settings1.Designer.cs</LastGenOutput>
67+
</None>
5968
<None Include="source.extension.vsixmanifest">
6069
<SubType>Designer</SubType>
6170
</None>

Dev17/Properties/Settings.Designer.cs

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dev17/Properties/Settings.settings

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="PerniciousGames.OpenFileInSolution.Properties" GeneratedClassName="Settings">
2+
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Dev17.Properties" GeneratedClassName="Settings">
33
<Profiles />
44
<Settings>
55
<Setting Name="Height" Type="System.Double" Scope="User">
@@ -17,5 +17,8 @@
1717
<Setting Name="WindowState" Type="System.Int32" Scope="User">
1818
<Value Profile="(Default)">0</Value>
1919
</Setting>
20+
<Setting Name="bSearchFullPath" Type="System.Boolean" Scope="User">
21+
<Value Profile="(Default)">False</Value>
22+
</Setting>
2023
</Settings>
2124
</SettingsFile>

Dev17/Properties/Settings1.Designer.cs

Lines changed: 98 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OpenFileInSolutionShared/ListFiles.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public ListFiles(IEnumerable<ProjectItemWrapper> inItems)
3333
viewSource = new CollectionViewSource();
3434
viewSource.Source = items;
3535

36+
bSearchFullPath = Properties.Settings.Default.bSearchFullPath;
37+
3638
InitializeComponent();
3739

3840
viewSource.Filter += FilterProjectItems;
@@ -397,6 +399,7 @@ private void SaveWindowSettings()
397399
Properties.Settings.Default.Top = RestoreBounds.Top;
398400
Properties.Settings.Default.Left = RestoreBounds.Left;
399401
Properties.Settings.Default.WindowState = (int)this.WindowState;
402+
Properties.Settings.Default.bSearchFullPath = bSearchFullPath;
400403
}
401404
}
402405
}

OpenFileInSolutionShared/app.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<setting name="WindowState" serializeAs="String">
2323
<value>0</value>
2424
</setting>
25+
<setting name="bSearchFullPath" serializeAs="String">
26+
<value>False</value>
27+
</setting>
2528
</PerniciousGames.OpenFileInSolution.Properties.Settings>
2629
</userSettings>
2730
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup></configuration>

Properties/Settings.Designer.cs

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Properties/Settings.settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
<Setting Name="WindowState" Type="System.Int32" Scope="User">
1818
<Value Profile="(Default)">0</Value>
1919
</Setting>
20+
<Setting Name="bSearchFullPath" Type="System.Boolean" Scope="User">
21+
<Value Profile="(Default)">False</Value>
22+
</Setting>
2023
</Settings>
2124
</SettingsFile>

Properties/Settings1.Designer.cs

Lines changed: 98 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)