コード例 #1
0
        public void Deploy()
        {
            foreach (ContractHandler contract in MainForm.CurrentUDS.Contracts)
            {
                if (contract.Ready)
                {
                    continue;
                }

                MessageBox.Show("尚有 Contract 未準備完成, 請稍侯再試!", "資訊", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            if (MainForm.LoginArgs.SucceedModuleLogin)
            {
                DeployForm df = new DeployForm(this);
                df.StartPosition = FormStartPosition.CenterParent;
                df.ShowDialog();
            }
            else
            {
                MessageBox.Show("連線模組檔案管理失敗.", "資訊", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
コード例 #2
0
        public void Deploy()
        {
            foreach (ContractHandler contract in MainForm.CurrentUDS.Contracts)
            {
                if (contract.Ready) continue;

                MessageBox.Show("尚有 Contract 未準備完成, 請稍侯再試!", "資訊", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            if (MainForm.LoginArgs.SucceedModuleLogin)
            {
                DeployForm df = new DeployForm(this);
                df.StartPosition = FormStartPosition.CenterParent;
                df.ShowDialog();
            }
            else
            {                
                MessageBox.Show("連線模組檔案管理失敗.", "資訊", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }