public TPPopupNotifier(AssignableSimpleDTO assignment) { /* switch (assignment.EntityTypeID) { case 4: type = NotificationType.Task; break; case 5: type = NotificationType.Task; break; case 8: type = NotificationType.Bug; break; case 9: type = NotificationType.Feature; break; case 17: type = NotificationType.Request; break; default: type = NotificationType.Other; break; }*/ /*switch (notificationType) { case NotificationType.Bug: BackColor = Color.LightPink; break; default: BackColor = Color.Azure; break; }*/ assignmentData = new AssignmentData(); assignmentData.EntityID = assignment.ID.Value; assignmentData.Name = assignment.Name; InitializeComponent(); }
public TPPopupNotifier(AssignableSimpleDTO assignment) { /* switch (assignment.EntityTypeID) * { * case 4: type = NotificationType.Task; break; * case 5: type = NotificationType.Task; break; * case 8: type = NotificationType.Bug; break; * case 9: type = NotificationType.Feature; break; * case 17: type = NotificationType.Request; break; * default: type = NotificationType.Other; break; * }*/ /*switch (notificationType) * { * case NotificationType.Bug: * BackColor = Color.LightPink; * break; * default: * BackColor = Color.Azure; * break; * }*/ assignmentData = new AssignmentData(); assignmentData.EntityID = assignment.ID.Value; assignmentData.Name = assignment.Name; InitializeComponent(); }
private void AddNewAssignmentReadOnce(AssignmentData knownTask) { var form = new TPPopupNotifier(knownTask, false); form.FormClosing += form_FormClosing; popupList.Add(form); RecalculatePopupPosistions(); }
public TPPopupNotifier(AssignmentData assignment, bool _RemovalFlag) { RemovalFlag = _RemovalFlag; MessageRead = !RemovalFlag; assignmentData = new AssignmentData(); assignmentData.EntityID = assignment.EntityID; assignmentData.Name = assignment.Name; InitializeComponent(); }