Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Petrroll.Helpers/Petrroll.Helpers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Petrroll.Helpers</RootNamespace>
<AssemblyName>Petrroll.Helpers</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
6 changes: 3 additions & 3 deletions PowerSwitcher.TrayApp/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public class PowerSwitcherSettings : ObservableObject
public bool AutomaticOnACSwitch { get; set; } = false;
public Guid AutomaticPlanGuidOnAC { get; set; } = new Guid("8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c");
public Guid AutomaticPlanGuidOffAC { get; set; } = new Guid("a1841308-3541-4fab-bc81-f71556f20b4a");
public Guid AutomaticPlanGuidOnApp { get; set; } = new Guid("8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c");
public Guid AutomaticPlanGuidOffApp { get; set; } = new Guid("a1841308-3541-4fab-bc81-f71556f20b4a");

public string AutomaticAppSwitchApp { get; set; } = "";

//TODO: Fix so that it can be changed during runtime
public Key ShowOnShortcutKey { get; set; } = Key.L;
Expand Down
5 changes: 4 additions & 1 deletion PowerSwitcher.TrayApp/PowerSwitcher.TrayApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PowerSwitcher.TrayApp</RootNamespace>
<AssemblyName>PowerSwitcher.TrayApp</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
Expand All @@ -28,6 +28,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -65,9 +66,11 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Management" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
Expand Down
44 changes: 18 additions & 26 deletions PowerSwitcher.TrayApp/Properties/Resources.Designer.cs

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

22 changes: 9 additions & 13 deletions PowerSwitcher.TrayApp/Properties/Settings.Designer.cs

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

29 changes: 28 additions & 1 deletion PowerSwitcher.TrayApp/Resources/AppStrings.Designer.cs

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

9 changes: 9 additions & 0 deletions PowerSwitcher.TrayApp/Resources/AppStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
<data name="AboutAppURL" xml:space="preserve">
<value>http://github.com/Petrroll/PowerSwitcher</value>
</data>
<data name="ApplicationName" xml:space="preserve">
<value>Application trigger</value>
</data>
<data name="AppName" xml:space="preserve">
<value>PowerPlanSwitcher</value>
</data>
Expand All @@ -144,9 +147,15 @@
<data name="SchemaToSwitchOffAc" xml:space="preserve">
<value>Schema to switch to off AC</value>
</data>
<data name="SchemaToSwitchOffApp" xml:space="preserve">
<value>Schema to switch to when application exits</value>
</data>
<data name="SchemaToSwitchOnAc" xml:space="preserve">
<value>Schema to switch to on AC</value>
</data>
<data name="SchemaToSwitchOnApp" xml:space="preserve">
<value>Schema to switch to when application starts</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Settings</value>
</data>
Expand Down
Loading