From e06799ce38ed9ae042e76b7466d0cb4dc32f04a8 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 21 Dec 2019 08:59:32 -0600 Subject: [PATCH] remove unused NameStateForm --- .../BizHawk.Client.EmuHawk.csproj | 10 -- .../NameStateForm.Designer.cs | 103 --------------- BizHawk.Client.EmuHawk/NameStateForm.cs | 38 ------ BizHawk.Client.EmuHawk/NameStateForm.resx | 120 ------------------ 4 files changed, 271 deletions(-) delete mode 100644 BizHawk.Client.EmuHawk/NameStateForm.Designer.cs delete mode 100644 BizHawk.Client.EmuHawk/NameStateForm.cs delete mode 100644 BizHawk.Client.EmuHawk/NameStateForm.resx diff --git a/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj b/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj index cba39d8bdd..a407f5833f 100644 --- a/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj +++ b/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj @@ -718,12 +718,6 @@ SubtitleMaker.cs - - Form - - - NameStateForm.cs - Form @@ -1683,10 +1677,6 @@ RecordMovie.cs - - NameStateForm.cs - Designer - OpenAdvancedChooser.cs diff --git a/BizHawk.Client.EmuHawk/NameStateForm.Designer.cs b/BizHawk.Client.EmuHawk/NameStateForm.Designer.cs deleted file mode 100644 index a5d33a4619..0000000000 --- a/BizHawk.Client.EmuHawk/NameStateForm.Designer.cs +++ /dev/null @@ -1,103 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class NameStateForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.cancelButton = new System.Windows.Forms.Button(); - this.saveButton = new System.Windows.Forms.Button(); - this.label1 = new System.Windows.Forms.Label(); - this.stateLabelTextBox = new System.Windows.Forms.TextBox(); - this.SuspendLayout(); - // - // cancelButton - // - this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.cancelButton.Location = new System.Drawing.Point(199, 51); - this.cancelButton.Name = "cancelButton"; - this.cancelButton.Size = new System.Drawing.Size(75, 23); - this.cancelButton.TabIndex = 0; - this.cancelButton.Text = "Cancel"; - this.cancelButton.UseVisualStyleBackColor = true; - this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click); - // - // saveButton - // - this.saveButton.Location = new System.Drawing.Point(118, 51); - this.saveButton.Name = "saveButton"; - this.saveButton.Size = new System.Drawing.Size(75, 23); - this.saveButton.TabIndex = 1; - this.saveButton.Text = "Save"; - this.saveButton.UseVisualStyleBackColor = true; - this.saveButton.Click += new System.EventHandler(this.saveButton_Click); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(12, 9); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(181, 13); - this.label1.TabIndex = 2; - this.label1.Text = "Enter a short label for this save state:"; - // - // stateLabelTextBox - // - this.stateLabelTextBox.Location = new System.Drawing.Point(15, 25); - this.stateLabelTextBox.MaxLength = 248; - this.stateLabelTextBox.Name = "stateLabelTextBox"; - this.stateLabelTextBox.Size = new System.Drawing.Size(259, 20); - this.stateLabelTextBox.TabIndex = 3; - // - // NameStateForm - // - this.AcceptButton = this.saveButton; - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.CancelButton = this.cancelButton; - this.ClientSize = new System.Drawing.Size(278, 81); - this.Controls.Add(this.stateLabelTextBox); - this.Controls.Add(this.label1); - this.Controls.Add(this.saveButton); - this.Controls.Add(this.cancelButton); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; - this.Name = "NameStateForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Label Save State"; - this.Shown += new System.EventHandler(this.NameStateForm_Shown); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Button cancelButton; - private System.Windows.Forms.Button saveButton; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.TextBox stateLabelTextBox; - } -} \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/NameStateForm.cs b/BizHawk.Client.EmuHawk/NameStateForm.cs deleted file mode 100644 index ab17e1356f..0000000000 --- a/BizHawk.Client.EmuHawk/NameStateForm.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using System.Windows.Forms; - -namespace BizHawk.Client.EmuHawk -{ - public partial class NameStateForm : Form - { - public string Result; - public bool OK; - - public NameStateForm() - { - InitializeComponent(); - AcceptButton = saveButton; - CancelButton = cancelButton; - } - - private void cancelButton_Click(object sender, EventArgs e) - { - Close(); - } - - private void saveButton_Click(object sender, EventArgs e) - { - if (stateLabelTextBox.Text.Length != 0) - { - Result = stateLabelTextBox.Text; - OK = true; - Close(); - } - } - - private void NameStateForm_Shown(object sender, EventArgs e) - { - stateLabelTextBox.Focus(); - } - } -} diff --git a/BizHawk.Client.EmuHawk/NameStateForm.resx b/BizHawk.Client.EmuHawk/NameStateForm.resx deleted file mode 100644 index c7e0d4bdf1..0000000000 --- a/BizHawk.Client.EmuHawk/NameStateForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file