Beispiel #1
0
        /// <summary>
        /// 模块加载
        /// </summary>
        private void ModuleAttach()
        {
            
            logView = new LogView("日志");
            nodeMonitorView = new NodeMonitorView("产线监控");
            nodeMonitorView.SetParent(this);
            nodeMonitorView.RegisterMenus(this.menuBar, "产线监控");

            logView.SetParent(this);
            logView.RegisterMenus(this.menuBar, "日志查询");
            logView.SetLogDispInterface(this);

            recordView = new RecordView();
            recordView.SetParent(this);
            recordView.RegisterMenus(this.menuBar, "记录查询与管理");
            recordView.SetLoginterface(logView.GetLogrecorder());
           

           // if(this.roleID <3 && this.roleID>0)
            {
                configView = new ConfiManageView();
                configView.SetParent(this);
                configView.RegisterMenus(this.menuBar, "配置管理");
                configView.SetLoginterface(logView.GetLogrecorder());
                
            }
            
            nodeMonitorView.SetLoginterface(logView.GetLogrecorder());
            nodeMonitorView.Init();
           
            logView.SetNodeNames(nodeMonitorView.GetNodeNames());
            logView.SetDebugMode(nodeMonitorView.IsDebugMode());
            AttachModuleView(nodeMonitorView);
        }