Skip to content

Commit

Permalink
Updated to version 3.9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskohl committed Dec 18, 2020
1 parent aa8606f commit f839f24
Show file tree
Hide file tree
Showing 21 changed files with 1,762 additions and 1,725 deletions.
18 changes: 7 additions & 11 deletions CapsLockIndicatorV3/CapsLockIndicatorV3.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<ProjectGuid>{D73D960D-7FF8-4F22-A19F-C555AAB7DD52}</ProjectGuid>
<ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
Expand All @@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>CapsLockIndicatorV3</RootNamespace>
<AssemblyName>CapsLockIndicatorV3</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFrameworkProfile />
</PropertyGroup>
Expand Down Expand Up @@ -55,6 +55,7 @@
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
Expand All @@ -80,6 +81,7 @@
<DependentUpon>DownloadDialog.cs</DependentUpon>
</Compile>
<Compile Include="DropDownLocale.cs" />
<Compile Include="ExtensionMethods.cs" />
<Compile Include="HelpWindow.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -112,6 +114,7 @@
<Compile Include="MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="Native.cs" />
<Compile Include="NumberInputDialog.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -121,17 +124,13 @@
<Compile Include="Options.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>resources.resx</DependentUpon>
</Compile>
<Compile Include="Settings.cs" />
<Compile Include="SettingsManager.cs" />
<Compile Include="strings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
Expand All @@ -153,10 +152,6 @@
<SubType>Designer</SubType>
</None>
<None Include="app.manifest" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="DownloadDialog.resx">
Expand Down Expand Up @@ -198,6 +193,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="CLIv3_Icon.ico" />
<None Include="Resources\defaultSettings.txt" />
<None Include="Resources\CLIv3_Scroll_On.ico" />
<None Include="Resources\CLIv3_Scroll_Off.ico" />
<None Include="Resources\CLIv3_Num_On.ico" />
Expand Down
24 changes: 24 additions & 0 deletions CapsLockIndicatorV3/ExtensionMethods.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CapsLockIndicatorV3
{
public static class ExtensionMethods
{
public static void Deconstruct<T>(this IEnumerable<T> list, out T first, out T second)
{
first = list.Count() > 0 ? list.ElementAt(0) : default(T);
second = list.Count() > 1 ? list.ElementAt(1) : default(T);
}

public static void Deconstruct<T, U>(this U list, out T first, out T second, out U rest) where U : IEnumerable<T>
{
first = list.Count() > 0 ? list.ElementAt(0) : default(T);
second = list.Count() > 1 ? list.ElementAt(1) : default(T);
rest = (U)list.Skip(2);
}
}
}
31 changes: 23 additions & 8 deletions CapsLockIndicatorV3/IndSettingsWindow.Designer.cs

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

Loading

0 comments on commit f839f24

Please sign in to comment.