Пример #1
0
 public FrmSettings()
 {
     InitializeComponent();
     comboBox1.Items.Add("Автоопределение");
     foreach (var enc in System.Text.Encoding.GetEncodings())
     {
         comboBox1.Items.Add(enc.Name);
     }
     comboBox2.SelectedIndex = Utils.StgGetInt("ExStyle");
     checkBox1.Checked       = Utils.StgGetBool("ShowResultsImmediately");
 }
Пример #2
0
        private void FrmSettings_Load(object sender, EventArgs e)
        {
            txtRegExp.Text = Utils.StgGetString("TxtRegExp").Replace(@"\\", @"\");

            if (Utils.StgGetInt("TxtCodepage") == 0)
            {
                comboBox1.Text = "Автоопределение";
            }
            else
            {
                // Saved encoding
                Encoding enc = Encoding.GetEncoding(Utils.StgGetInt("TxtCodepage"));
                comboBox1.Text = enc.WebName;
            }
        }