private void creatJob() { //appManager = new ApplicationManager(); jobManager = appManager.JobManager(); if (jobManager.ErrorStatus() != 0) { MessageBox.Show(jobManager.ErrorMessage()); } theJob = jobManager.OpenJob(jobName); if (theJob is null) { MessageBox.Show("获取的Job对象为空"); } //MessageBox.Show(string.Format(" {0}",? (theJob.JobTypeStr().Length>0): "已成功获取Job","获取的Job对象为空")); if (appManager.ErrorStatus() != 0) { string logoex = ""; //消息框弹窗内容、弹窗标题、确定按钮 MessageBox.Show(appManager.ErrorMessage(), "Error", MessageBoxButtons.OK); Application.Exit(); } }