Skip to content

Commit

Permalink
Save layout preferences, minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoHennig committed Jun 19, 2018
1 parent 6883433 commit d3541bf
Show file tree
Hide file tree
Showing 13 changed files with 295 additions and 191 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]
48 changes: 48 additions & 0 deletions Properties/Settings.Designer.cs

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

14 changes: 13 additions & 1 deletion Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Replication.Properties" GeneratedClassName="Settings">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="SimpleDatabaseReplicator.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Setting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="splitterDistance" Type="System.Int32" Scope="User">
<Value Profile="(Default)">400</Value>
</Setting>
<Setting Name="columnWidthJobName" Type="System.Int32" Scope="User">
<Value Profile="(Default)">327</Value>
</Setting>
<Setting Name="columnWidthStatus" Type="System.Int32" Scope="User">
<Value Profile="(Default)">279</Value>
</Setting>
<Setting Name="columnWidthProgress" Type="System.Int32" Scope="User">
<Value Profile="(Default)">213</Value>
</Setting>
</Settings>
</SettingsFile>
28 changes: 28 additions & 0 deletions Settings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
namespace SimpleDatabaseReplicator.Properties {


// This class allows you to handle specific events on the settings class:
// The SettingChanging event is raised before a setting's value is changed.
// The PropertyChanged event is raised after a setting's value is changed.
// The SettingsLoaded event is raised after the setting values are loaded.
// The SettingsSaving event is raised before the setting values are saved.
internal sealed partial class Settings {

public Settings() {
// // To add event handlers for saving and changing settings, uncomment the lines below:
//
// this.SettingChanging += this.SettingChangingEventHandler;
//
// this.SettingsSaving += this.SettingsSavingEventHandler;
//
}

private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
// Add code to handle the SettingChangingEvent event here.
}

private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
// Add code to handle the SettingsSaving event here.
}
}
}
11 changes: 6 additions & 5 deletions SimpleDatabaseReplicator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
<Compile Include="DB\DbTableLoader.cs" />
<Compile Include="DB\DbTaskRunner.cs" />
<Compile Include="Replicator\MessageHandler.cs" />
<Compile Include="Settings.cs" />
<Compile Include="Util\Functions.cs" />
<Compile Include="Images.Designer.cs">
<AutoGen>True</AutoGen>
Expand Down Expand Up @@ -198,11 +199,11 @@
<Compile Include="UI\Main.Designer.cs">
<DependentUpon>Main.cs</DependentUpon>
</Compile>
<Compile Include="UI\Settings.cs">
<Compile Include="UI\SettingsForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\Settings.Designer.cs">
<DependentUpon>Settings.cs</DependentUpon>
<Compile Include="UI\SettingsForm.Designer.cs">
<DependentUpon>SettingsForm.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -239,8 +240,8 @@
<SubType>Designer</SubType>
<DependentUpon>Main.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\Settings.resx">
<DependentUpon>Settings.cs</DependentUpon>
<EmbeddedResource Include="UI\SettingsForm.resx">
<DependentUpon>SettingsForm.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
Expand Down
114 changes: 57 additions & 57 deletions UI/GraphicMapping.Designer.cs

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

18 changes: 11 additions & 7 deletions UI/Main.Designer.cs

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

Loading

0 comments on commit d3541bf

Please sign in to comment.