コード例 #1
0
        private void LoginInplan()
        {
            appManager.Login(s1, s2);
            theJob = jobManager.OpenJob(jobName);
            if (appManager.ErrorStatus() != 0)
            {
                string logoex = "";
                //消息框弹窗内容、弹窗标题、确定按钮
                MessageBox.Show("Inplan外部登录:  " + appManager.ErrorMessage(), "Error", MessageBoxButtons.OK);
                Application.Exit();
            }

            if (theJob is null && logintimes <= 2)
            {
                logintimes = logintimes + 1;
                LoginInplan();

                //MessageBox.Show("未能成功登录");
            }