Update some UI's in Additional Pop-ups

This commit is contained in:
miku-666
2022-06-09 23:34:30 +02:00
parent 0be84e9580
commit 55daef7268
6 changed files with 10 additions and 7 deletions

View File

@@ -53,8 +53,8 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "MetaADD";
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.ResumeLayout(false);
this.PerformLayout();

View File

@@ -2397,9 +2397,6 @@
vbLH9tge22N7bI/tsT22x/bYHttjC+3/B71iqRn22EDpAAAAAElFTkSuQmCC
</value>
</data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
</data>

View File

@@ -52,6 +52,7 @@
//
resources.ApplyResources(this.InputTextBox, "InputTextBox");
this.InputTextBox.Name = "InputTextBox";
this.InputTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.InputTextBox_KeyDown);
//
// RenamePrompt
//

View File

@@ -25,5 +25,11 @@ namespace PckStudio
{
DialogResult = DialogResult.OK;
}
private void InputTextBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
OKBtn_Click(sender, e);
}
}
}

View File

@@ -53,8 +53,8 @@ namespace PckStudio
add.TopMost = true;
add.TopLevel = true;
add.ShowDialog();
refresh();
add.Dispose();
refresh();
}
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)

View File

@@ -72,7 +72,6 @@ namespace PckStudio
string entryName = "";
string entryValue = "";
bool entryStart = true;
int i = 0;
foreach (char entry in listView1.SelectedItems[0].Tag.ToString().ToList())
{
if (entry.ToString() != ":" && entry.ToString() != "\n" && entryStart == true)
@@ -94,7 +93,7 @@ namespace PckStudio
entryValue = "";
entryStart = true;
}
this.Close();
Close();
}
}catch (Exception)
{