Пример #1
0
        private void btnCheck_Click(object sender, EventArgs e)
        {
            tbOutput.Text = "";
            listBoxBranchFiles.Items.Clear();
            listBoxMainlineFiles.Items.Clear();
            listBoxBranchCsproj.Items.Clear();
            listBoxMainlineCsproj.Items.Clear();

            #region register workflow items.
            AddTask(new TaskItem_CheckProj_CheckDeveloper(comboBox1.SelectedItem.ToString())); // check developer
            AddTask(new TaskItem_CheckProj_CheckTfsMapping(tbTfsMapping.Text));                // check TFS mapping

            var taskGetMainlineFiles = new TaskItem_CheckProj_GetMainlineFiles(tbTfsMapping.Text);
            AddTask(taskGetMainlineFiles); // search for all files in mainline

            var taskGetBranchFiles = new TaskItem_CheckProj_GetBranchFiles(tbTfsMapping.Text, comboBox1.SelectedItem.ToString());
            AddTask(taskGetBranchFiles); // search for all files in branches

            // comparing of project files(except csproj, \bin, \obj, \writedir, \UploadFile, \.vs, \data_dll
            AddTask(new TaskItem_CheckProj_CheckFiles(taskGetMainlineFiles, taskGetBranchFiles));

            // comparing of csproj files.
            AddTask(new TaskItem_CheckProj_CheckCsprojFiles(taskGetMainlineFiles, taskGetBranchFiles));
            #endregion // register workflow items.

            StartWorkFlow();
        }
Пример #2
0
 public TaskItem_CheckProj_CheckCsprojFiles(TaskItem_CheckProj_GetMainlineFiles pTask1, TaskItem_CheckProj_GetBranchFiles pTask2)
     : base(pTask1, pTask2)
 {
 }
Пример #3
0
 public TaskItem_CheckProj_CheckFiles(TaskItem_CheckProj_GetMainlineFiles pTask1, TaskItem_CheckProj_GetBranchFiles pTask2)
 {
     PrevTaskMainline = pTask1;
     PrevTaskBranch   = pTask2;
 }