コード例 #1
0
        public DebugUI(FrameUI frm, Work _work)
        {
            frameUI = frm;
            worker  = _work;
            InitializeComponent();
            this.Dock = DockStyle.Fill;
            UiInit();
            sationModelPanelControl.tag_Work = worker;
            debugOffsetControl.tag_work      = worker;

            // Input IO点加入
            for (int i = 0; i < 100; i++)
            {
                IOInputStatusControl pvale = new IOInputStatusControl(null);
                pvale.Location = new Point(5, 24 + 28 * i);
                tag_IOinputStatusList.Add(pvale);
                pvale.Visible = false;
                plIOmessage.Controls.Add(pvale);
            }

            // Outpu IO点加入
            for (int i = 0; i < 100; i++)
            {
                IOOutputStatusControl pvale = new IOOutputStatusControl(null, OutIOStationSelect);
                pvale.Location = new Point(200, 24 + 28 * i);
                tag_IOIOoutputStatus.Add(pvale);
                pvale.Visible = false;
                plIOmessage.Controls.Add(pvale);
            }
        }
コード例 #2
0
        public MainUI(FrameUI frameUI, Work work)
        {
            //////////////////////////////////////////////////////////////////////////
            NewCtrlCardV0.tag_initResult = NewCtrlCardV0.initCard(work.tag_CardHave);
            if (NewCtrlCardV0.tag_initResult == 0)
            {
                NewCtrlCardIO.StartListenSignal(work.tag_CardHave);
            }
            work.AllAxismodeInit();

            //////////////////////////////////////////////////////////////////////////
            InitializeComponent();
            tag_Work     = work;
            this.frameUI = frameUI;
            if (frameUI != null)
            {
                this.Size = new Size(frameUI.Size.Width, frameUI.Size.Height - 50);
            }

            webControl_NG.RefreshURL("http://www.mirsyu.xyz/HTML/NG.html");
            panel_NG.Controls.Add(webControl_NG);
            webControl_NG.Location = new Point(0, 0);
            webControl_NG.Size     = webControl_NG.Parent.Size;

            webControl_Charts.RefreshURL("http://www.mirsyu.xyz/HTML/Charts.html");
            panel_Charts.Controls.Add(webControl_Charts);
            webControl_Charts.Location = new Point(0, 0);
            webControl_Charts.Size     = webControl_Charts.Parent.Size;


            groupBox_RunInfo.Controls.Add(logOutControl);
            logOutControl.Location = new Point(5, 20);
            logOutControl.Size     = new Size(groupBox_RunInfo.Size.Width - 10, groupBox_RunInfo.Size.Height - 25);
        }
コード例 #3
0
 public LoginUI(FrameUI fmp)
 {
     frameUI = fmp;
     InitializeComponent();
 }
コード例 #4
0
        public static bool bInitialized = false;        //窗体初始化加载完成

        public static void Init(FrameUI form)
        {
            framUI = form;
        }