diff --git a/APK_QSigner/APK_QSigner.csproj b/APK_QSigner/APK_QSigner.csproj index 22b1625..0107f1d 100644 --- a/APK_QSigner/APK_QSigner.csproj +++ b/APK_QSigner/APK_QSigner.csproj @@ -56,6 +56,7 @@ SignForm.cs + ResXFileCodeGenerator diff --git a/APK_QSigner/SignForm.cs b/APK_QSigner/SignForm.cs index 4b0f9e7..aa9ef66 100644 --- a/APK_QSigner/SignForm.cs +++ b/APK_QSigner/SignForm.cs @@ -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 diff --git a/APK_QSigner/Threading.cs b/APK_QSigner/Threading.cs new file mode 100644 index 0000000..b52915b --- /dev/null +++ b/APK_QSigner/Threading.cs @@ -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(); + } + } +} \ No newline at end of file