Skip to content

Commit f41128a

Browse files
Add project files.
1 parent 6b55724 commit f41128a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+7223
-0
lines changed

KeyboardSwitch.sln

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26403.7
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyboardSwitch", "KeyboardSwitch\KeyboardSwitch.csproj", "{8C7343C8-1986-4D78-84A0-1D229590583F}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{8C7343C8-1986-4D78-84A0-1D229590583F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{8C7343C8-1986-4D78-84A0-1D229590583F}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{8C7343C8-1986-4D78-84A0-1D229590583F}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{8C7343C8-1986-4D78-84A0-1D229590583F}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal

KeyboardSwitch/AboutWindow.xaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<Window x:Class="KeyboardSwitch.AboutWindow"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:local="clr-namespace:KeyboardSwitch"
7+
mc:Ignorable="d" Height="170" Width="275" ResizeMode="NoResize"
8+
Title="About" WindowStartupLocation="CenterOwner">
9+
<Grid>
10+
<Grid.RowDefinitions>
11+
<RowDefinition Height="1*"/>
12+
<RowDefinition/>
13+
</Grid.RowDefinitions>
14+
15+
<TextBlock x:Name="textBlock" Grid.Row="0" Margin="20,10"
16+
VerticalAlignment="Center"/>
17+
18+
<Button Grid.Row="1" Content="OK" Click="Button_Click" IsTabStop="False"
19+
VerticalAlignment="Center" HorizontalAlignment="Right"
20+
Padding="30,5" Margin="20,10" IsDefault="True" IsCancel="True"/>
21+
22+
<TextBlock Grid.Row="1" Margin="20,20,140,20" TextDecorations="Underline"
23+
Cursor="Hand" Foreground="Blue" MouseLeftButtonUp="TextBlock_MouseLeftButtonUp"
24+
VerticalAlignment="Center" HorizontalAlignment="Left">
25+
More info
26+
</TextBlock>
27+
</Grid>
28+
</Window>

KeyboardSwitch/AboutWindow.xaml.cs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
using System;
2+
using System.Diagnostics;
3+
using System.IO;
4+
using System.Reflection;
5+
using System.Windows;
6+
7+
namespace KeyboardSwitch
8+
{
9+
public partial class AboutWindow : Window
10+
{
11+
public AboutWindow()
12+
{
13+
InitializeComponent();
14+
}
15+
16+
public AboutWindow(Window owner)
17+
{
18+
InitializeComponent();
19+
Owner = owner;
20+
Version version = Assembly.GetExecutingAssembly().GetName().Version;
21+
textBlock.Text = "Keyboard Layout Switch\n" +
22+
"Version " + version.Major + "." + version.Minor + "\n" +
23+
"Created by Tolik Pylypchuk";
24+
}
25+
26+
private void Button_Click(object sender, RoutedEventArgs e)
27+
{
28+
Close();
29+
}
30+
31+
private void TextBlock_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
32+
{
33+
Process.Start("notepad.exe", Path.Combine(Path.GetDirectoryName(
34+
Assembly.GetEntryAssembly().Location), "readme.txt"));
35+
}
36+
}
37+
}

KeyboardSwitch/App.config

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<configSections>
4+
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
5+
<section name="KeyboardSwitch.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
6+
<section name="KeyboardChanger.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
7+
</sectionGroup>
8+
</configSections>
9+
<startup>
10+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
11+
</startup>
12+
<userSettings>
13+
<KeyboardSwitch.Properties.Settings>
14+
<setting name="HotKeyForward" serializeAs="String">
15+
<value>X</value>
16+
</setting>
17+
<setting name="HotKeyBackward" serializeAs="String">
18+
<value>Z</value>
19+
</setting>
20+
<setting name="RunOnStartup" serializeAs="String">
21+
<value>True</value>
22+
</setting>
23+
<setting name="KeyModifiers" serializeAs="String">
24+
<value>CA</value>
25+
</setting>
26+
<setting name="StartMenuIcon" serializeAs="String">
27+
<value>True</value>
28+
</setting>
29+
</KeyboardSwitch.Properties.Settings>
30+
<KeyboardChanger.Properties.Settings>
31+
<setting name="HotKeyForward" serializeAs="String">
32+
<value>X</value>
33+
</setting>
34+
<setting name="HotKeyBackward" serializeAs="String">
35+
<value>Z</value>
36+
</setting>
37+
</KeyboardChanger.Properties.Settings>
38+
</userSettings>
39+
</configuration>

0 commit comments

Comments
 (0)