示例#1
0
        private void butLinkTask_Click(object sender, EventArgs e)
        {
            FormTaskSearch FormTS = new FormTaskSearch();

            FormTS.IsSelectionMode = true;
            if (FormTS.ShowDialog() == DialogResult.OK)
            {
                JobLink jobLink = new JobLink();
                jobLink.JobNum   = _jobNum;
                jobLink.FKey     = FormTS.SelectedTaskNum;
                jobLink.LinkType = JobLinkType.Task;
                JobLinks.Insert(jobLink);
                _jobLinks   = JobLinks.GetJobLinks(_jobNum);
                _hasChanged = true;
                FillGrid();
            }
        }
示例#2
0
        private void gridTasks_TitleAddClick(object sender, EventArgs e)
        {
            FormTaskSearch FormTS = new FormTaskSearch()
            {
                IsSelectionMode = true
            };

            FormTS.ShowDialog();
            if (FormTS.DialogResult != DialogResult.OK)
            {
                return;
            }
            JobLink jobLink = new JobLink();

            jobLink.FKey     = FormTS.SelectedTaskNum;
            jobLink.LinkType = JobLinkType.Task;
            _listJobLinks.Add(jobLink);
            FillGridTasks();
        }