Example #1
0
        private void comboBox_Presets_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (comboBox_Presets.SelectedIndex)
            {
            case 0:
                _scriptFile.FontSettings = FontSettings.ASCII();
                break;

            case 1:
                _scriptFile.FontSettings = FontSettings.Latin1();
                break;

            case 2:
                _scriptFile.FontSettings = FontSettings.DE();
                break;

            default:
                _scriptFile.FontSettings = FontSettings.ASCII();
                break;
            }
            SelectFont(_scriptFile.FontName);
            numericUpDown_FontSize.Value        = _scriptFile.FontSize;
            textBox_AllowedSymbols.Text         = new String(_scriptFile.AllowedSymbols.ToArray());
            textBox_AllowedSplittedSymbols.Text = new String(_scriptFile.AllowedSplittedSymbols.ToArray());

            UpdatePreview();
        }