Skip to content

Commit

Permalink
v0.1-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
René committed Jan 1, 2019
1 parent 9ace227 commit 934e856
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
15 changes: 0 additions & 15 deletions MouseTrap/App.config
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="MouseTrap.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<!--<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
</System.Windows.Forms.ApplicationConfigurationSection>-->
<userSettings>
<MouseTrap.Properties.Settings>
<setting name="Setting" serializeAs="String">
<value>Start</value>
</setting>
</MouseTrap.Properties.Settings>
</userSettings>
</configuration>
5 changes: 3 additions & 2 deletions MouseTrap/Models/SettingsFile.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
using System.IO;
using System;
using System.IO;
using System.Windows.Forms;


namespace MouseTrap.Models {
public class SettingsFile {
protected static string SavePath(string name) => Path.Combine(Application.UserAppDataPath, name + ".json");
protected static string SavePath(string name) => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), nameof(MouseTrap), name + ".json");

public static void Save<T>(T obj)
{
Expand Down
8 changes: 4 additions & 4 deletions MouseTrap/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MouseTrap")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("MouseTrap is a small tool to map the cursor between multiple monitors with different resolutions and scaling settings.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("LarchSys")]
[assembly: AssemblyProduct("MouseTrap")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
Expand All @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.1.0")]
[assembly: AssemblyFileVersion("0.1.0")]

0 comments on commit 934e856

Please sign in to comment.