コード例 #1
0
        //Form
        public frmMain()
        {
            InitializeComponent();

            //Load files
            // ReSharper disable CoVariantArrayConversion
            string s = Properties.Settings.Default.Source_Paths;
            if (!string.IsNullOrEmpty(s))
            {
                cbPath.Items.Clear();
                cbPath.Items.AddRange(s.Split('\n'));
            }
            cbPath.SelectedIndex = 0;
            s = Properties.Settings.Default.Run_Paths;
            if (s != "")
            {
                cbRun_Path.Items.Clear();
                cbRun_Path.Items.AddRange(s.Split('\n'));
            }
            cbRun_Path.SelectedIndex = 0;
            // ReSharper restore CoVariantArrayConversion

            _ide.SourceRTF = tbParse_Source;
            _ide.CompiledRTF = tbCompiled;
            _ide.GetSourceFile = GetSourceFile;
            _parser = _ide.Parser;
            _compiler = _ide.Compiler;
            _source_tp = _ide.SourceAnnotations;
            _compile_tp = _ide.CompiledAnnotations;

            tbParse_Source_TextChanged(null, null);
        }
コード例 #2
0
 public UndefinedFunctionCall(Parser newParser)
 {
     Parser = newParser;
 }