コード例 #1
0
        private void FormDashboard_Load(object sender, EventArgs e)
        {
            this.CenterToParent();
            FakeIssueRepository fakeIssues = new FakeIssueRepository();

            this.numIssue.Text = fakeIssues.GetTotalNumberOfIssues(currentPrjId).ToString();

            List <string> monthlyIssue = new List <string>();
            List <string> issByDisc    = new List <string>(0);

            monthlyIssue = fakeIssues.GetIssuesByMonth(currentPrjId);
            issByDisc    = fakeIssues.GetIssuesByDiscoverer(currentPrjId);
            this.issueByMonth_List.Lines = monthlyIssue.ToArray();
            this.IssueByDisc_list.Lines  = issByDisc.ToArray();
        }
コード例 #2
0
        public FormDashboard(int projectID)
        {
            InitializeComponent();
            this.CenterToParent();

            NumIssues.Text = issueRepository.GetTotalNumberOfIssues(projectID).ToString();

            foreach (string issueByDate in issueRepository.GetIssuesByMonth(projectID))
            {
                IssuesByMonthListBox.Items.Add(issueByDate);
            }

            foreach (string issueByDiscoverer in issueRepository.GetIssuesByDiscoverer(projectID))
            {
                IssuesByDiscovererListBox.Items.Add(issueByDiscoverer);
            }
        }
コード例 #3
0
        private void FormIssueDashboard_Load(object sender, EventArgs e)
        {
            NumIssuesLabel.Text = formIssueRepo.GetTotalNumberOfIssues(selectedProject) + "";

            List <string> monthList = formIssueRepo.GetIssuesByMonth(selectedProject);

            foreach (string month in monthList)
            {
                IssueByMonthBox.Items.Add(month);
            }

            List <string> discovererList = formIssueRepo.GetIssuesByDiscoverer(selectedProject);

            foreach (string disc in discovererList)
            {
                IssueByDiscovererBox.Items.Add(disc);
            }
        }
コード例 #4
0
        private void FormDashIssue_Load(object sender, EventArgs e)
        {
            this.CenterToParent();
            FakeIssueRepository iss = new FakeIssueRepository();

            issueN   = iss.GetTotalNumberOfIssues(_currentProj);
            Month    = iss.GetIssuesByMonth(_currentProj);
            Discover = iss.GetIssuesByDiscoverer(_currentProj);

            issueNumber.Text = Convert.ToString(issueN);
            foreach (string M in Month)
            {
                listMonth.Items.Add(M);
            }
            foreach (string D in Discover)
            {
                listDis.Items.Add(D);
            }
        }