Add contributor credits and repo link to MainForm UI
Enhanced the MainForm UI by adding labels for contributor credits and a link to the repository. Updated the license generation status to display the license file path. Also added Newtonsoft.Json 13.0.3 as a dependency and cleaned up unused Properties resources from the project file. Co-Authored-By: YurZoRE <68684104+RE0x0@users.noreply.github.com>
This commit is contained in:
@@ -78,29 +78,11 @@
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Main\Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Main\MainForm.resx">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Main\packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Main\App.config" />
|
||||
@@ -120,5 +102,8 @@
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Generated
+44
-4
@@ -43,6 +43,9 @@
|
||||
this.txtLicenseKey = new System.Windows.Forms.TextBox();
|
||||
this.lbName = new System.Windows.Forms.Label();
|
||||
this.txtName = new System.Windows.Forms.TextBox();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnGenerate
|
||||
@@ -100,7 +103,7 @@
|
||||
this.lbProduct.AutoSize = true;
|
||||
this.lbProduct.Location = new System.Drawing.Point(12, 129);
|
||||
this.lbProduct.Name = "lbProduct";
|
||||
this.lbProduct.Size = new System.Drawing.Size(48, 13);
|
||||
this.lbProduct.Size = new System.Drawing.Size(47, 13);
|
||||
this.lbProduct.TabIndex = 8;
|
||||
this.lbProduct.Text = "Product:";
|
||||
//
|
||||
@@ -125,7 +128,7 @@
|
||||
this.lbHWID.AutoSize = true;
|
||||
this.lbHWID.Location = new System.Drawing.Point(12, 169);
|
||||
this.lbHWID.Name = "lbHWID";
|
||||
this.lbHWID.Size = new System.Drawing.Size(39, 13);
|
||||
this.lbHWID.Size = new System.Drawing.Size(40, 13);
|
||||
this.lbHWID.TabIndex = 11;
|
||||
this.lbHWID.Text = "HWID:";
|
||||
//
|
||||
@@ -144,7 +147,7 @@
|
||||
this.lbLicense.AutoSize = true;
|
||||
this.lbLicense.Location = new System.Drawing.Point(12, 9);
|
||||
this.lbLicense.Name = "lbLicense";
|
||||
this.lbLicense.Size = new System.Drawing.Size(67, 13);
|
||||
this.lbLicense.Size = new System.Drawing.Size(68, 13);
|
||||
this.lbLicense.TabIndex = 13;
|
||||
this.lbLicense.Text = "License Key:";
|
||||
//
|
||||
@@ -173,11 +176,45 @@
|
||||
this.txtName.TabIndex = 14;
|
||||
this.txtName.Text = "John Doe";
|
||||
//
|
||||
// linkLabel1
|
||||
//
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.Location = new System.Drawing.Point(368, 29);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(63, 13);
|
||||
this.linkLabel1.TabIndex = 16;
|
||||
this.linkLabel1.TabStop = true;
|
||||
this.linkLabel1.Text = "Link to repo";
|
||||
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(325, 50);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(151, 13);
|
||||
this.label2.TabIndex = 17;
|
||||
this.label2.Text = "Made by t0int1337 and RE0x0";
|
||||
this.label2.Click += new System.EventHandler(this.label2_Click);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.25F);
|
||||
this.label3.Location = new System.Drawing.Point(325, 252);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(191, 26);
|
||||
this.label3.TabIndex = 18;
|
||||
this.label3.Text = "If you are a contributor, please open an\r\n issue to have your name here";
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(282, 287);
|
||||
this.ClientSize = new System.Drawing.Size(520, 287);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.linkLabel1);
|
||||
this.Controls.Add(this.lbName);
|
||||
this.Controls.Add(this.txtName);
|
||||
this.Controls.Add(this.txtLicenseKey);
|
||||
@@ -217,5 +254,8 @@
|
||||
private System.Windows.Forms.TextBox txtLicenseKey;
|
||||
private System.Windows.Forms.Label lbName;
|
||||
private System.Windows.Forms.TextBox txtName;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
}
|
||||
}
|
||||
+19
-1
@@ -79,8 +79,17 @@ namespace BunifuLicenseGenerator
|
||||
|
||||
LicenseGenerator.SaveLicenseToFile(encryptedLicense, productType);
|
||||
LicenseGenerator.SaveLicenseToRegistry(encryptedLicense, productType);
|
||||
string programDataPath = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),
|
||||
"Bunifu Technologies"
|
||||
);
|
||||
|
||||
labelStatus.Text = "License generated and saved successfully!";
|
||||
string productFolder = Path.Combine(programDataPath, productType.ToString());
|
||||
Directory.CreateDirectory(productFolder);
|
||||
|
||||
string _licenseFilePath = Path.Combine(productFolder, "License.lic");
|
||||
|
||||
labelStatus.Text = "License generated and saved successfully! (" + _licenseFilePath + ")";
|
||||
MessageBox.Show("License generated successfully!\n\n" +
|
||||
$"Product: {productType}\n" +
|
||||
$"HWID: {Hardware.GetUniqueID()}\n" +
|
||||
@@ -99,6 +108,15 @@ namespace BunifuLicenseGenerator
|
||||
}
|
||||
}
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
System.Diagnostics.Process.Start("https://github.com/t0int1337/BunifuUiCrack");
|
||||
|
||||
}
|
||||
|
||||
private void label2_Click(object sender, EventArgs e)
|
||||
{
|
||||
System.Diagnostics.Process.Start("https://github.com/t0int1337/BunifuUiCrack/graphs/contributors");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user