RenamePrompt - Removed unused methods

This commit is contained in:
miku-666
2023-04-02 17:31:49 +02:00
parent 3eaabe840f
commit bc75726787
2 changed files with 1 additions and 8 deletions

View File

@@ -86,7 +86,7 @@
this.Controls.Add(this.InputTextBox);
this.Controls.Add(this.OKButton);
this.Controls.Add(this.TextLabel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "RenamePrompt";

View File

@@ -19,18 +19,11 @@ namespace PckStudio
InitializeComponent();
InputTextBox.Text = InitialText;
InputTextBox.MaxLength = maxChar < 0 ? short.MaxValue : maxChar;
FormBorderStyle = FormBorderStyle.None;
}
private void OKBtn_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
private void InputTextBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
OKBtn_Click(sender, e);
}
}
}