コード例 #1
0
        private void FormRecordIssue_Load(object sender, EventArgs e)
        {
            dateTimediscovery.MaxDate      = DateTime.Now;
            dateTimediscovery.Value        = DateTime.Today;
            dateTimediscovery.Format       = DateTimePickerFormat.Custom;
            dateTimediscovery.CustomFormat = "hh:mm:ss tt dd MMM yyyy";

            int newId = 1;

            foreach (AppUser appUser in userRepository.GetAll())
            {
                comboBoxdiscoverer.Items.Add(appUser.LastName + ", " + appUser.FirstName);
            }

            foreach (IssueStatus issueStatus in issueStatusRepository.GetAll())
            {
                comboBoxstatus.Items.Add(issueStatus.Value);
            }

            foreach (Issue issue in issueRepository.GetAll(_SelectedProjectId))
            {
                newId++;
            }
            this.CenterToScreen();

            textBoxid.Text = newId.ToString();
        }
コード例 #2
0
 private void FormSelectIssue_Load(object sender, EventArgs e)
 {
     this.CenterToScreen();
     foreach (Issue issue in _IssueRepository.GetAll(_SelectedProjectId))
     {
         string issuestatus = _StatusRepository.GetValueById(issue.IssueStatusId);
         dataGridView1.Rows.Add(new object[] { issue.Id.ToString(), issue.Title.ToString(), issue.DiscoveryDate, issue.Discoverer.ToString(), issue.InitialDescription.ToString(), issue.Component.ToString(), issuestatus });
     }
 }
コード例 #3
0
ファイル: FormRemove.cs プロジェクト: Seth30/P6
        private void FormRemove_Load(object sender, EventArgs e)
        {
            foreach (Project p in FakeProjectRepository._Projects)
            {
                if (selected == p.Name)
                {
                    selectedid = p.Id;
                }
            }
            List <Issue> issues = new List <Issue>();

            issues          = newissue.GetAll(selectedid);
            grid.DataSource = issues;
            Issue selectId = (Issue)grid.CurrentRow.DataBoundItem;

            selectedId = selectId.ProjectId;
        }