Beispiel #1
0
        private void OpenLadder()
        {
            this.gbec = Program.app.GetBlockEditor(pl);
            pLBlockEditorControlElementProxy =
                new PLBlockEditorControlElementProxy(this.gbec);
            OnlineManagerBase plOnlineManager = pLBlockEditorControlElementProxy.PLBlockEditorLogic.OnlineManager;

            plOnlineManager.GoOnline();
            plOnlineManager.StartProgramStatus();
            Controls.Add(this.gbec);

            this.gbec.DisablePLBlockInput();
        }
Beispiel #2
0
        private void TestGetLadderEditor()
        {
            this.gbec = Program.app.GetBlockEditor(graph);
            GraphBlockEditorControlProxy pLBlockEditorControlElementProxy =
                new GraphBlockEditorControlProxy(this.gbec);
            OnlineManagerBase plOnlineManager = pLBlockEditorControlElementProxy.GraphBlockEditorLogic.OnlineManager;

            plOnlineManager.GoOnline();
            plOnlineManager.StartProgramStatus();

            List <IUIControl> children = pLBlockEditorControlElementProxy.GetChildUIControls();

            Controls.Add(this.gbec);
        }
Beispiel #3
0
        private void OpenGraph()
        {
            this.gbec = Program.app.GetBlockEditor(graph);
            GraphBlockEditorControlProxy pLBlockEditorControlElementProxy =
                new GraphBlockEditorControlProxy(this.gbec);

            //pLBlockEditorControlElementProxy.BasicDrawSettings.StepBackground = Brushes.DarkBlue;
            //Font stepNameFont = new Font("Consolas", pLBlockEditorControlElementProxy.BasicDrawSettings.StepNameFont.Size);
            //pLBlockEditorControlElementProxy.BasicDrawSettings.StepNameFont = stepNameFont;

            OnlineManagerBase plOnlineManager = pLBlockEditorControlElementProxy.GraphBlockEditorLogic.OnlineManager;

            plOnlineManager.GoOnline();
            plOnlineManager.StartProgramStatus();


            List <IUIControl> children = pLBlockEditorControlElementProxy.GetChildUIControls();

            Controls.Add(this.gbec);
            var cs = this.gbec.Controls;

            this.gbec.DisableGraphBlockInput();
        }