private void dataModeToolStripMenuItem_Click(object sender, EventArgs e) { CurrentFileChar cfc = new CurrentFileChar(); cfc.ShowDialog(); if (cfc.dialogResult == System.Windows.Forms.DialogResult.OK) { currentInputChar = cfc.ResultChar; currentInputFileCounter = 0; currentInputFile = currentInputChar + currentInputFileCounter; actionButton.Text = ">>> save >>>"; outputBox.Text = "File area"; outputLabel.Text = currentInputFile; } }