Esempio n. 1
0
        public Control ShowLifelistNodeModuleState(ICoreObject cpu)
        {
            IWorkingContext   LifelistNodeUIContext = cpu.GetUIWorkingContext();
            IWorkingContext   workingContext        = cpu.GetWorkingContext();
            FrameGroupManager manager   = LifelistNodeUIContext.GetHwcnFrameGroupManager();
            ICommandProcessor processor = workingContext.GetCommandProcessor();
            ICommand          command   = processor.CreateCommand("Hwcn.Diagnostic.ShowModuleState", new object[1]
            {
                cpu
            }, new NameObjectCollection());

            command.Arguments.Add("DoeStartCategory", "DiagCategoryEventLog");
            CommandResult result = manager.Execute(command);

            if (result.ReturnCode == CommandReturnCodes.Handled)
            {
                object resultObject            = result.ReturnValue;
                List <IDoeInstanceAccess> does = manager.GetDoeInstances();
                foreach (IDoeInstanceAccess doe in does)
                {
                    DoeInstanceAccess DoeInstanceAccess = doe as DoeInstanceAccess;
                    DoeViewAccess     viewAccess        = DoeInstanceAccess.GetDoeViewAccess() as DoeViewAccess;
                    ICoreObject       viewObject        = doe.ViewObject;
                    IEditorFrame      frame             = doe.EditorFrame;
                    if (viewObject == cpu)
                    {
                        return(frame.FrameControl);
                    }
                }
            }
            return(null);
        }
Esempio n. 2
0
 public void CloseEditor(IEditorFrame editorFrame)
 {
     IEditorMainFrame.CloseEditor(editorFrame);
 }
Esempio n. 3
0
 public void Minimize(IEditorFrame frameToMinimize, bool minimize)
 {
     IEditorMainFrame.Minimize(frameToMinimize, minimize);
 }
Esempio n. 4
0
 public void EditorFullScreen(IEditorFrame editorFrame, bool fullSizeState)
 {
     IEditorMainFrame.EditorFullScreen(editorFrame, fullSizeState);
 }