// creates notification for not following the standards public void FollowingStandard(HomeDashboard hd, Triggers x) { NotificationButton a = new NotificationButton(); hd.Notification_Table.Controls.Add(a.createNotificationButton(x)); hd.Notification_Table.Show(); foreach (Button tb in hd.tableLayoutPanel1.Controls) { if (tb.Text == x.TeamName) { if (tb.Image == null) { tb.Image = WindowsFormsApp1.Properties.Resources.standardIcon; tb.ImageAlign = ContentAlignment.TopRight; } else if (tb.Image != null) { tb.Image = WindowsFormsApp1.Properties.Resources.both; tb.ImageAlign = ContentAlignment.TopRight; } } } }
// 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(); }