diff --git a/BunifuLicenseGenerator.csproj b/BunifuLicenseGenerator.csproj index 9437f7b..14285f3 100644 --- a/BunifuLicenseGenerator.csproj +++ b/BunifuLicenseGenerator.csproj @@ -78,29 +78,11 @@ MainForm.cs - MainForm.cs - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - + @@ -120,5 +102,8 @@ false + + + \ No newline at end of file diff --git a/Main/MainForm.Designer.cs b/Main/MainForm.Designer.cs index 476c22c..8d7039f 100644 --- a/Main/MainForm.Designer.cs +++ b/Main/MainForm.Designer.cs @@ -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; } } \ No newline at end of file diff --git a/Main/MainForm.cs b/Main/MainForm.cs index 4a76751..8baf0a8 100644 --- a/Main/MainForm.cs +++ b/Main/MainForm.cs @@ -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"); + } } } diff --git a/packages.config b/packages.config new file mode 100644 index 0000000..0b14af3 --- /dev/null +++ b/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file