コード例 #1
0
        private void RecordIssue_Load(object sender, EventArgs e)
        {
            this.CenterToParent();
            textBox1.Text = issueRepository.GetNextID().ToString();
            List <IssueStatus> issueStatuses = fakeIssueStatusRepository.GetAll();

            foreach (IssueStatus issue in issueStatuses)
            {
                comboBoxStatus.Items.Add(issue.value);
            }
            comboBoxStatus.SelectedIndex = 0;
            FakeAppUserRepository fakeAppUserRepository = new FakeAppUserRepository();
            List <AppUser>        appUsers = fakeAppUserRepository.GetAll();

            foreach (AppUser user in appUsers)
            {
                comboBoxDiscoverer.Items.Add(user.UserName);
            }
        }