Exemplo n.º 1
0
        private void FormRecordIssue_Load(object sender, EventArgs e)
        {
            this.CenterToParent();
            FakeAppUserRepository users = new FakeAppUserRepository();
            List <AppUser>        usrs  = users.GetAll();

            FakeIssueStatusRepository issues   = new FakeIssueStatusRepository();
            List <IssueStatus>        myissues = new List <IssueStatus>();

            myissues = issues.GetAll();

            foreach (AppUser usr in usrs)
            {
                string name = usr.LastName + ", " + usr.FirstName;
                discoverers.Items.Add(name);
            }

            foreach (IssueStatus isSt in myissues)
            {
                statuses.Items.Add(isSt.Value);
            }

            FakeIssueRepository isss = new FakeIssueRepository();

            this.Iss_Id.Text = isss.getNextIssueId().ToString();
        }