115 lines
4.0 KiB
C#
115 lines
4.0 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Windows.Forms;
|
|
using DarkUI.Controls;
|
|
using DarkUI.Forms;
|
|
|
|
|
|
public class GForm_ExtractSize : DarkForm
|
|
{
|
|
|
|
public GForm_ExtractSize()
|
|
{
|
|
this.InitializeComponent();
|
|
|
|
comboBox1.SelectedIndex = 0;
|
|
}
|
|
|
|
private void method_0(object sender, EventArgs e)
|
|
{
|
|
base.DialogResult = DialogResult.OK;
|
|
base.Close();
|
|
}
|
|
|
|
private void method_1(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void method_2(object sender, EventArgs e)
|
|
{
|
|
base.DialogResult = DialogResult.Abort;
|
|
base.Close();
|
|
}
|
|
|
|
protected virtual void Dispose(bool disposing)
|
|
{
|
|
if (disposing && this.icontainer_0 != null)
|
|
{
|
|
this.icontainer_0.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.darkButton_0 = new DarkUI.Controls.DarkButton();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
|
this.SuspendLayout();
|
|
//
|
|
// darkButton_0
|
|
//
|
|
this.darkButton_0.Checked = false;
|
|
this.darkButton_0.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
this.darkButton_0.Location = new System.Drawing.Point(105, 68);
|
|
this.darkButton_0.Name = "darkButton_0";
|
|
this.darkButton_0.Size = new System.Drawing.Size(75, 23);
|
|
this.darkButton_0.TabIndex = 4;
|
|
this.darkButton_0.Text = "Accept";
|
|
this.darkButton_0.Click += new System.EventHandler(this.method_0);
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
|
this.label3.ForeColor = System.Drawing.SystemColors.ControlLight;
|
|
this.label3.Location = new System.Drawing.Point(31, 15);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(223, 13);
|
|
this.label3.TabIndex = 10;
|
|
this.label3.Text = "Select the size of memory you want to extract:";
|
|
this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
|
//
|
|
// comboBox1
|
|
//
|
|
this.comboBox1.FormattingEnabled = true;
|
|
this.comboBox1.Items.AddRange(new object[] {
|
|
"0xF7FFF (1Mb firmware .bin)",
|
|
"0x1EFFFF (2Mb firmware .bin)",
|
|
"0x26FFFF (4Mb firmware .bin)"});
|
|
this.comboBox1.Location = new System.Drawing.Point(9, 38);
|
|
this.comboBox1.Name = "comboBox1";
|
|
this.comboBox1.Size = new System.Drawing.Size(272, 21);
|
|
this.comboBox1.TabIndex = 11;
|
|
//
|
|
// GForm_ExtractSize
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(289, 101);
|
|
this.ControlBox = false;
|
|
this.Controls.Add(this.comboBox1);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.darkButton_0);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "GForm_ExtractSize";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
this.Text = "Memory Size for Extraction";
|
|
this.Load += new System.EventHandler(this.method_1);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
private IContainer icontainer_0;
|
|
private DarkButton darkButton_0;
|
|
private Label label3;
|
|
public ComboBox comboBox1;
|
|
}
|