Exemple #1
0
        private void threadProc(object sender)
        {
            allControlEnable(false);
            string             strReviewId      = sender.ToString();
            List <string>      strFileList      = new List <string>();
            List <DisplayData> m_pFileFullPaths = new List <DisplayData>();
            bool            bReturn             = false;
            DelegateMsgInfo delegateMethod      = new DelegateMsgInfo();

            delegateMethod.AppendCmdInfo = setLogInfo;

            GetCc_Command Cc_command = new GetCc_Command();

            Cc_command.AppendMsg     = delegateMethod;
            Cc_command.strCcFilePath = ClearCaseFilePath.Text;
            Cc_command.strCcMapPath  = ClearCase_MapPath.Text;
            Cc_command.strCcBranch   = ClearCase_Branch.Text;
            Cc_command.getClearCaseFilePath(ref strFileList);

            if (strReviewId.Length == 6 && radio_NewReview.Checked == false)
            {
                bReturn = Cc_command.getOldReviewFilePath(strReviewId, strFileList, ref m_pFileFullPaths);
            }
            else
            {
                bReturn = Cc_command.getNewReviewFilePath(strReviewId, strFileList, ref m_pFileFullPaths);
            }

            if (bReturn)
            {
                displayDataFalseOrSuccess(m_pFileFullPaths);
                MessageBox.Show(@"Complete");
            }
            allControlEnable(true);
        }
Exemple #2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public Cmd(DelegateMsgInfo AppendMsgHandler)
 {
     proc      = new Process();
     AppendMsg = AppendMsgHandler;
 }