Esempio n. 1
0
        private void butLinkFeatReq_Click(object sender, EventArgs e)
        {
            FormFeatureRequest FormFR = new FormFeatureRequest();

            FormFR.IsSelectionMode = true;
            FormFR.ShowDialog();
            if (FormFR.DialogResult == DialogResult.OK)
            {
                JobLink jobLink = new JobLink();
                jobLink.JobNum   = _jobNum;
                jobLink.FKey     = FormFR.SelectedFeatureNum;
                jobLink.LinkType = JobLinkType.Request;
                JobLinks.Insert(jobLink);
                _jobLinks   = JobLinks.GetJobLinks(_jobNum);
                _hasChanged = true;
                FillGrid();
            }
        }
Esempio n. 2
0
        private bool AddFeatureRequest()
        {
            FormFeatureRequest FormFR = new FormFeatureRequest()
            {
                IsSelectionMode = true
            };

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

            jobLink.FKey     = FormFR.SelectedFeatureNum;
            jobLink.LinkType = JobLinkType.Request;
            _listJobLinks.Add(jobLink);
            FillGridFeatureReq();
            return(true);
        }
Esempio n. 3
0
 private void menuItemRequestFeatures_Click(object sender,EventArgs e)
 {
     FormFeatureRequest FormF=new FormFeatureRequest();
     FormF.ShowDialog();
 }