示例#1
0
        public ParserControl()
        {
            _btnNext = new Btn("Next", this, OnNextClick);

            _dbParser = new Db(this);
            _dbParser.SelectedIndexChanged += OnParserChange;
            _dbParser.Items.AddRange(Parsers.All.Select(p => p.Name).ToArray());
            _dbParser.SelectedIndex = Parsers.IndexOf(Settings.Get.SelectedParser);

            _tbInput           = new RichTb(this);
            _tbInput.Multiline = true;
            _tbInput.AddLabel("Input:", false);
            _tbInput.Font = new Font(FontFamily.GenericMonospace, _tbInput.Font.Size);
        }
示例#2
0
        public CompilerControl()
        {
            _btnPrevious = new Btn("Previous", this, (o, e) => { ShowUserControl <EditDataControl>(); });
            _btnExit     = new Btn("Exit", this, (o, e) => { Application.Exit(); });

            _dbCompiler = new Db(this);
            _dbCompiler.SelectedIndexChanged += OnCompilerChange;
            _dbCompiler.Items.AddRange(Compilers.All.Select(p => p.Name).ToArray());
            _dbCompiler.SelectedIndex = Compilers.IndexOf(Settings.Get.SelectedCompiler);

            _tbOutput           = new RichTb(this);
            _tbOutput.Multiline = true;
            _tbOutput.AddLabel("Output:", false);
            _tbOutput.Font = new Font(FontFamily.GenericMonospace, _tbOutput.Font.Size);
        }