Barely made any progress lol

This commit is contained in:
Swee 2024-05-11 16:12:18 -07:00
parent bee8d38bda
commit abfdb97453
3 changed files with 191 additions and 29 deletions

162
Form1.Designer.cs generated
View file

@ -28,12 +28,166 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); groupBox1 = new GroupBox();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; radioButton2 = new RadioButton();
this.ClientSize = new System.Drawing.Size(800, 450); radioButton1 = new RadioButton();
this.Text = "Form1"; panel1 = new Panel();
groupBox2 = new GroupBox();
button1 = new Button();
textBox1 = new TextBox();
menuStrip1 = new MenuStrip();
fileToolStripMenuItem = new ToolStripMenuItem();
helpToolStripMenuItem = new ToolStripMenuItem();
aboutToolStripMenuItem = new ToolStripMenuItem();
groupBox1.SuspendLayout();
panel1.SuspendLayout();
groupBox2.SuspendLayout();
menuStrip1.SuspendLayout();
SuspendLayout();
//
// groupBox1
//
groupBox1.Controls.Add(radioButton2);
groupBox1.Controls.Add(radioButton1);
groupBox1.Dock = DockStyle.Left;
groupBox1.Location = new Point(0, 0);
groupBox1.Name = "groupBox1";
groupBox1.Size = new Size(126, 67);
groupBox1.TabIndex = 0;
groupBox1.TabStop = false;
groupBox1.Text = "File mode";
//
// radioButton2
//
radioButton2.AutoSize = true;
radioButton2.Dock = DockStyle.Top;
radioButton2.FlatStyle = FlatStyle.System;
radioButton2.Location = new Point(3, 39);
radioButton2.Name = "radioButton2";
radioButton2.Size = new Size(120, 20);
radioButton2.TabIndex = 1;
radioButton2.TabStop = true;
radioButton2.Text = "Render mode";
radioButton2.UseVisualStyleBackColor = true;
//
// radioButton1
//
radioButton1.AutoSize = true;
radioButton1.Dock = DockStyle.Top;
radioButton1.FlatStyle = FlatStyle.System;
radioButton1.Location = new Point(3, 19);
radioButton1.Name = "radioButton1";
radioButton1.Size = new Size(120, 20);
radioButton1.TabIndex = 0;
radioButton1.TabStop = true;
radioButton1.Text = "Converter mode";
radioButton1.UseVisualStyleBackColor = true;
radioButton1.CheckedChanged += radioButton1_CheckedChanged;
//
// panel1
//
panel1.Controls.Add(groupBox2);
panel1.Controls.Add(groupBox1);
panel1.Dock = DockStyle.Top;
panel1.Location = new Point(0, 24);
panel1.Name = "panel1";
panel1.Size = new Size(800, 67);
panel1.TabIndex = 1;
//
// groupBox2
//
groupBox2.Controls.Add(button1);
groupBox2.Controls.Add(textBox1);
groupBox2.Dock = DockStyle.Left;
groupBox2.Location = new Point(126, 0);
groupBox2.Name = "groupBox2";
groupBox2.Size = new Size(313, 67);
groupBox2.TabIndex = 1;
groupBox2.TabStop = false;
groupBox2.Text = "Output file";
//
// button1
//
button1.Dock = DockStyle.Fill;
button1.FlatStyle = FlatStyle.System;
button1.Location = new Point(3, 42);
button1.Name = "button1";
button1.Size = new Size(307, 22);
button1.TabIndex = 1;
button1.Text = "Select folder";
button1.UseVisualStyleBackColor = true;
//
// textBox1
//
textBox1.Dock = DockStyle.Top;
textBox1.Location = new Point(3, 19);
textBox1.Name = "textBox1";
textBox1.PlaceholderText = "Type path or select folder below. ";
textBox1.Size = new Size(307, 23);
textBox1.TabIndex = 0;
//
// menuStrip1
//
menuStrip1.Items.AddRange(new ToolStripItem[] { fileToolStripMenuItem, helpToolStripMenuItem });
menuStrip1.Location = new Point(0, 0);
menuStrip1.Name = "menuStrip1";
menuStrip1.Size = new Size(800, 24);
menuStrip1.TabIndex = 2;
menuStrip1.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
fileToolStripMenuItem.Name = "fileToolStripMenuItem";
fileToolStripMenuItem.Size = new Size(37, 20);
fileToolStripMenuItem.Text = "File";
//
// helpToolStripMenuItem
//
helpToolStripMenuItem.Alignment = ToolStripItemAlignment.Right;
helpToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { aboutToolStripMenuItem });
helpToolStripMenuItem.Name = "helpToolStripMenuItem";
helpToolStripMenuItem.Size = new Size(44, 20);
helpToolStripMenuItem.Text = "Help";
//
// aboutToolStripMenuItem
//
aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
aboutToolStripMenuItem.Size = new Size(107, 22);
aboutToolStripMenuItem.Text = "About";
//
// Form1
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 492);
Controls.Add(panel1);
Controls.Add(menuStrip1);
MainMenuStrip = menuStrip1;
Name = "Form1";
Text = "MintHTML";
groupBox1.ResumeLayout(false);
groupBox1.PerformLayout();
panel1.ResumeLayout(false);
groupBox2.ResumeLayout(false);
groupBox2.PerformLayout();
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion
private GroupBox groupBox1;
private RadioButton radioButton2;
private RadioButton radioButton1;
private Panel panel1;
private MenuStrip menuStrip1;
private ToolStripMenuItem fileToolStripMenuItem;
private ToolStripMenuItem helpToolStripMenuItem;
private ToolStripMenuItem aboutToolStripMenuItem;
private GroupBox groupBox2;
private TextBox textBox1;
private Button button1;
} }
} }

View file

@ -6,5 +6,10 @@ namespace MintHTML
{ {
InitializeComponent(); InitializeComponent();
} }
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
groupBox2.Enabled = radioButton1.Checked;
}
} }
} }

View file

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->
@ -117,4 +117,7 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root> </root>