Missing files + start working on offline patcher

This commit is contained in:
2025-06-23 13:42:14 +02:00
parent 058d48196a
commit 2d36fecb45
70 changed files with 11475 additions and 12 deletions

View File

@@ -37,19 +37,23 @@
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(189, 9);
this.label1.Location = new System.Drawing.Point(149, 5);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(178, 19);
this.label1.Size = new System.Drawing.Size(259, 30);
this.label1.TabIndex = 0;
this.label1.Text = "Safe Exam Browser Patch";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// textBox1
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox1.Location = new System.Drawing.Point(12, 38);
this.textBox1.Location = new System.Drawing.Point(12, 50);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
@@ -59,7 +63,9 @@
//
// button1
//
this.button1.Location = new System.Drawing.Point(435, 244);
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.button1.Location = new System.Drawing.Point(435, 262);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(124, 46);
this.button1.TabIndex = 2;
@@ -69,19 +75,21 @@
//
// checkBox1
//
this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(12, 258);
this.checkBox1.Location = new System.Drawing.Point(12, 274);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(63, 17);
this.checkBox1.Size = new System.Drawing.Size(86, 25);
this.checkBox1.TabIndex = 3;
this.checkBox1.Text = "Backup";
this.checkBox1.UseVisualStyleBackColor = true;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(571, 302);
this.ClientSize = new System.Drawing.Size(571, 330);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);

69
patch-seb/OfflinePatcher.Designer.cs generated Normal file
View File

@@ -0,0 +1,69 @@
namespace patch_seb
{
partial class OfflinePatcher
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OfflinePatcher));
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(336, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(343, 28);
this.label1.TabIndex = 0;
this.label1.Text = "Safe Exam Browser Offline Patcher";
//
// OfflinePatcher
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1069, 637);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "OfflinePatcher";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Safe Exam Browser Offline Patcher";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace patch_seb
{
public partial class OfflinePatcher : Form
{
public OfflinePatcher()
{
InitializeComponent();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -12,11 +12,25 @@ namespace patch_seb
/// Punto di ingresso principale dell'applicazione.
/// </summary>
[STAThread]
static void Main()
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
if (args.Length == 1)
{
if (args[1] == "/offline" || args[1] == "/Offline")
{
Application.Run(new OfflinePatcher());
}
else
{
Application.Run(new Form1());
}
}
else
{
Application.Run(new Form1());
}
}
}
}

View File

@@ -60,11 +60,20 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="OfflinePatcher.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OfflinePatcher.Designer.cs">
<DependentUpon>OfflinePatcher.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OfflinePatcher.resx">
<DependentUpon>OfflinePatcher.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>