Exemplo n.º 1
0
        // creates notification if a team member does not commit
        public void TeamMemberCommit(Team_Dashboard hd, Triggers x)
        {
            NotificationButton d = new NotificationButton();

            hd.Notification_Table2.Controls.Add(d.createNotificationButton(x));
            d.closeButton.Click += (sender, EventArgs) => { d.closeButton_Click2(sender, EventArgs, x); };
            hd.Notification_Table2.Show();
        }
Exemplo n.º 2
0
        // loads notification for the team members in the Team Dashboard
        public void loadNoitification(Team_Dashboard hd, Triggers t)
        {
            IList <Triggers> trigger = Variables.db.GetTriggers();

            if (t.Type == "memberCommit")
            {
                TeamMemberCommit(hd, t);
            }
        }
Exemplo n.º 3
0
        public void button_Click(object sender, EventArgs e)
        {
            Team_Dashboard TD = new Team_Dashboard(newTeam);

            try
            {
                //getting url
                string meetingfileNameURL = Variables.parseInstance.URLFactory(newTeam.Url, "meetings");
                string commitURL          = Variables.parseInstance.URLFactory(newTeam.Url, "commit");
                string readmeURL          = Variables.parseInstance.URLFactory(newTeam.Url, "readme");
                // NOTE: THE FOLLOWING LINE DOES NOT WORK WHEN THE MEETING MINUTES FOLDER NAME CONTAINS A SPACE
                //downloading string from url which is store in rdmeu
                string readMe             = Variables.parseInstance.WebClient(readmeURL);
                string meetingMinutesFile = Variables.parseInstance.meetingFile(newTeam.Url, Variables.parseInstance.fileNameSorting(Variables.parseInstance.LoadGithubDataAsync(meetingfileNameURL, "filename")))[0];
                //changing string data into parse_Summary and storing into TD.summaryrichTextBox1
                TD.summaryrichTextBox1.Text += Variables.parseInstance.parse_Summary(readMe);
                //changing string data into parse_Members and storing into TD.teamMembersRichTextBox1
                TD.teamMembersRichTextBox1.Text += Variables.parseInstance.parse_Members(readMe);
                //changing string data into parse_Meeting and storing into TD.meetingRichTextBox1
                TD.meetingRichTextBox1.Text += Variables.parseInstance.parse_Meeting(meetingMinutesFile);
                TD.NotesRichTextBox1.Text   += Variables.NotesInstance.ReadNotes(newTeam);
                // Display the some commits in like date, name, and message in weekly progress

                foreach (var item in Variables.parseInstance.LoadGithubDataAsync(commitURL, "commit"))
                {
                    TD.Progress_List.Items.Add(item);
                }

                TD.filesBox.Items.Clear();
                foreach (var item in Variables.parseInstance.fileNameSorting(Variables.parseInstance.LoadGithubDataAsync(meetingfileNameURL, "filename")))
                {
                    TD.filesBox.Items.Add(item);
                }

                foreach (var item in Variables.parseInstance.LoadGithubDataAsync(commitURL, "commit"))
                {
                    TD.Progress_List.Items.Add(item);
                }

                TD.Show();
            }
            catch (Exception)
            {
                MessageBox.Show("Check Team URL or Internet Connection.");
            }
        }