Example #1
0
        public frmSource(MySource source)
        {
            InitializeComponent();

            this.source   = source;
            this.codepage = CodePageConverter.GetCodePage(source.CodePage);

            comboBoxSourceType.Items.AddRange(new string[] { SourceTypeConverter.SourceTypeSection, SourceTypeConverter.SourceTypeString });
            comboBoxSourceType.Text = source.SourceType;
            textBoxEdit.Text        = source.Source;
        }
Example #2
0
 public MySource()
 {
     CodePage   = CodePageConverter.GetDisplayName(Encoding.Default.CodePage);
     SourceType = SourceTypeConverter.SourceTypeSection;
     Source     = "0x0020-0x007F,0x20:00-0x2B:FF,0x4E:00-0x9F:FF,0xFF:00-0xFF:FF";
 }