コード例 #1
0
        public EpiInterpreterParser(IAnalysisCheckCode pAnalysisCheckCodeInterface)
        {
            Stream stream = EpiInterpreterParser.GetCompiledGrammarTable();

            Init(stream);
            this.AnalysisCheckCodeInterface = pAnalysisCheckCodeInterface;
        }
コード例 #2
0
        /// <summary>
        /// Constructor for Command Design Dialog
        /// </summary>
        /// <param name="frm">The main form</param>
        public CommandDesignDialog(Epi.Windows.Analysis.Forms.AnalysisMainForm frm)
            : base(frm)
        {
            InitializeComponent();
            if (frm != null)
                this.EpiInterpreter = frm.EpiInterpreter;

            //dialogCommandProcessor = Module.GetService(typeof(ICommandProcessor)) as ICommandProcessor;
            //if (dialogCommandProcessor == null)
            //{
            //    throw new GeneralException("Command processor is required but not available.");
            //}
        }
コード例 #3
0
        private void Construct()
        {
            DockManager.FastMoveDraw = false;
            DockManager.Style = DockVisualStyle.VS2005;

            commandExplorer = new CommandExplorer(this);
            commandExplorer.AllowClose = false;
            commandExplorer.AllowUnDock = false;
            commandExplorer.HideOnClose = true;
            commandExplorer.CommandGenerated += new CommandGenerationEventHandler(commandExplorer_CommandGenerated);
            outputWindow = new OutputWindow(this);
            outputWindow.AllowClose = false;
            outputWindow.AllowUnDock = false;
            outputWindow.IndeterminateTaskStarted += new BeginBusyEventHandler(outputWindow_IndeterminateTaskStarted);
            outputWindow.IndeterminateTaskEnded += new EndBusyEventHandler(outputWindow_IndeterminateTaskEnded);
            programEditor = new ProgramEditor(this);
            programEditor.AllowClose = false;
            programEditor.AllowUnDock = false;
            programEditor.HideOnClose = true;
            programEditor.RunCommand += new RunCommandEventHandler(programEditor_RunCommand);
            programEditor.RunPGM += new RunPGMEventHandler(programEditor_RunPGM);

            dockManager1.DockWindow(outputWindow, DockStyle.Fill);
            dockManager1.DockWindow(commandExplorer, DockStyle.Left);
            dockManager1.DockWindow(programEditor, DockStyle.Bottom);
            //Reduction.MemoryRegion = new MemoryRegion();

            //Module.Processor.ProcessResultsHandler = new ProcessCommandResultsHandler(ProcessCommandResults);
            //this.EpiInterpreter = new EpiInterpreterParser(Epi.Resources.ResourceLoader.GetCompiledGrammarTable(), (IAnalysisCheckCode)outputWindow, Rule_Context.eRunMode.Analysis);
            this.mEpiInterpreter = new EpiInterpreterParser((IAnalysisCheckCode)outputWindow.eventQueue);
        }