private void buttonClean_Click(object sender, EventArgs e) { textBoxId.Text = ""; textBoxDBName.Text = ""; textBoxDescription.Text = ""; textBoxPublisher.Text = ""; textBoxDeveloper.Text = ""; textBoxYearReleased.Text = ""; textBoxRating.Text = ""; textBoxRomName.Text = textBoxFileName.Text.Trim().Replace(RomFunctions.GetFileExtension(textBoxFileName.Text), string.Empty); }
private void buttonCopyToRom_Click(object sender, EventArgs e) { var ext = RomFunctions.GetFileExtension(textBoxFileName.Text); if (ext == "") { textBoxRomName.Text = textBoxFileName.Text.Trim(); } else { textBoxRomName.Text = textBoxFileName.Text.Trim().Replace(ext, string.Empty); } }
private void buttonCopyToFile_Click(object sender, EventArgs e) { textBoxFileName.Text = textBoxRomName.Text.Trim() + RomFunctions.GetFileExtension(textBoxFileName.Text); }