Forex_Strategy_Builder.Instrument_Editor.TbxPropFileName_TextChanged C# (CSharp) Method

TbxPropFileName_TextChanged() private method

Sets the data file names.
private TbxPropFileName_TextChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        void TbxPropFileName_TextChanged(object sender, EventArgs e)
        {
            string text = tbxPropFileName.Text;
            Regex regexFileName = new Regex(@"^[a-zA-Z\$\#][\w- ]*$");

            if (regexFileName.IsMatch(text))
            {
                tbxPropFileName.ForeColor = colorText;
                lblPropDataFiles.Text =
                    "   1 Minute    -  " + text + "1.csv;    1 Hour    -  " + text + "60.csv"   + Environment.NewLine +
                    "   5 Minutes  -  "  + text + "5.csv;    4 Hours  -  "  + text + "240.csv"  + Environment.NewLine +
                    " 15 Minutes  -  "   + text + "15.csv;  1 Day     -  "  + text + "1440.csv" + Environment.NewLine +
                    " 30 Minutes  -  "   + text + "30.csv;  1 Week  -  "    + text + "10080.csv";
            }
            else
            {
                tbxPropFileName.ForeColor = Color.Red;
                lblPropDataFiles.Text = "";
            }

            return;
        }