Skip to content
This repository was archived by the owner on Feb 23, 2022. It is now read-only.

Commit 08e7d1d

Browse files
committed
Basic Layout
1 parent 5f263e3 commit 08e7d1d

8 files changed

Lines changed: 1114 additions & 49 deletions

File tree

KryptoSignerApp/Form1.Designer.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.

KryptoSignerApp/KryptoSigner/Forms/MainScreen.Designer.cs

Lines changed: 301 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

KryptoSignerApp/Form1.cs renamed to KryptoSignerApp/KryptoSigner/Forms/MainScreen.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
using System.Threading.Tasks;
99
using System.Windows.Forms;
1010

11-
namespace KryptoSignerApp
11+
namespace KryptoSignerApp.KryptoSigner.Forms
1212
{
13-
public partial class Form1 : Form
13+
public partial class MainScreen : Form
1414
{
15-
public Form1()
15+
public MainScreen()
1616
{
1717
InitializeComponent();
1818
}

KryptoSignerApp/KryptoSigner/Forms/MainScreen.resx

Lines changed: 793 additions & 0 deletions
Large diffs are not rendered by default.
41.6 KB
Loading
42 KB
Loading

KryptoSignerApp/KryptoSignerApp.csproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,17 @@
4545
<Reference Include="System.Xml" />
4646
</ItemGroup>
4747
<ItemGroup>
48-
<Compile Include="Form1.cs">
48+
<Compile Include="KryptoSigner\Forms\MainScreen.cs">
4949
<SubType>Form</SubType>
5050
</Compile>
51-
<Compile Include="Form1.Designer.cs">
52-
<DependentUpon>Form1.cs</DependentUpon>
51+
<Compile Include="KryptoSigner\Forms\MainScreen.Designer.cs">
52+
<DependentUpon>MainScreen.cs</DependentUpon>
5353
</Compile>
5454
<Compile Include="Program.cs" />
5555
<Compile Include="Properties\AssemblyInfo.cs" />
56+
<EmbeddedResource Include="KryptoSigner\Forms\MainScreen.resx">
57+
<DependentUpon>MainScreen.cs</DependentUpon>
58+
</EmbeddedResource>
5659
<EmbeddedResource Include="Properties\Resources.resx">
5760
<Generator>ResXFileCodeGenerator</Generator>
5861
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
@@ -75,5 +78,8 @@
7578
<ItemGroup>
7679
<None Include="App.config" />
7780
</ItemGroup>
81+
<ItemGroup>
82+
<Folder Include="KryptoSigner\Properties\" />
83+
</ItemGroup>
7884
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7985
</Project>

KryptoSignerApp/Program.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
52
using System.Windows.Forms;
3+
using KryptoSignerApp.KryptoSigner.Forms;
64

75
namespace KryptoSignerApp
86
{
@@ -14,9 +12,15 @@ static class Program
1412
[STAThread]
1513
static void Main()
1614
{
15+
if (Environment.OSVersion.Version.Major >= 6)
16+
SetProcessDPIAware();
17+
1718
Application.EnableVisualStyles();
1819
Application.SetCompatibleTextRenderingDefault(false);
19-
Application.Run(new Form1());
20+
Application.Run(new MainScreen());
2021
}
22+
23+
[System.Runtime.InteropServices.DllImport("user32.dll")]
24+
private static extern bool SetProcessDPIAware();
2125
}
2226
}

0 commit comments

Comments
 (0)