Skip to content

Commit

Permalink
Add threading capabilities before release!
Browse files Browse the repository at this point in the history
  • Loading branch information
oijdfdg committed Mar 1, 2022
1 parent 32b8a3f commit dc44038
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
1 change: 1 addition & 0 deletions APK_QSigner/APK_QSigner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<Compile Include="SignForm.Designer.cs">
<DependentUpon>SignForm.cs</DependentUpon>
</Compile>
<Compile Include="Threading.cs" />
<Compile Include="UberApkSigner.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
Expand Down
21 changes: 10 additions & 11 deletions APK_QSigner/SignForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@ public SignForm()
}

#region On launch




private void SignForm_Load(object sender, EventArgs e)
{
Text = "APK QSigner";
var icon = ResourceManager.GetImageFromResources("icon");
Icon = ResourceManager.BitmapToIcon(icon);
BackColor = ColorTranslator.FromHtml("#171717");
dropHereAPK.ForeColor = Color.White;
browseLbl.ForeColor = Color.White;
signer = new UberApkSigner();
Threading.RunWithThread(() =>
{
Text = "APK QSigner";
var icon = ResourceManager.GetImageFromResources("icon");
Icon = ResourceManager.BitmapToIcon(icon);
BackColor = ColorTranslator.FromHtml("#171717");
dropHereAPK.ForeColor = Color.White;
browseLbl.ForeColor = Color.White;
signer = new UberApkSigner();
});
}
#endregion
#region Enter/Leave animation for browseLbl
Expand Down
13 changes: 13 additions & 0 deletions APK_QSigner/Threading.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Threading;

namespace APK_QSigner
{
public static class Threading
{
public static void RunWithThread(Action ac)
{
new Thread(new ThreadStart(ac)).Start();
}
}
}

0 comments on commit dc44038

Please sign in to comment.