예제 #1
0
        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);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 private void buttonCopyToFile_Click(object sender, EventArgs e)
 {
     textBoxFileName.Text = textBoxRomName.Text.Trim() + RomFunctions.GetFileExtension(textBoxFileName.Text);
 }