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();
		}
示例#3
0
        private void AddNewAssignment(AssignableSimpleDTO assignment)
        {
            var form = new TPPopupNotifier(assignment);

            form.FormClosing += form_FormClosing;
            popupList.Add(form);
            RecalculatePopupPosistions();
        }
		public void ChangeState(AssignableSimpleDTO assignable, EntityStateDTO entityState)
		{
			if (!_connected)
			{
				throw new InvalidOperationException("Not connected");
			}
			try
			{
				_webServices.ChangeState(assignable, entityState);
			}
			catch (Exception ex)
			{
				_env.Trace.WriteLine(ex);
				_env.ShowMessageBox(ex.Message, "Could not change state", MessageBoxButtons.OK, MessageBoxIcon.Error);
				Disconnect();
				return;
			}
			_env.Trace.WriteLine(string.Format("State changed to {0}", entityState.Name));
			Refresh();
		}
		public AssignmentEventArgs(AssignableSimpleDTO assignable)
		{
			_assignable = assignable;
		}
			public void ChangeState(AssignableSimpleDTO assignable, EntityStateDTO entityState)
			{
				//
			}
		public ToDoListItemTag(AssignableSimpleDTO assignable, EntityStateDTO entityState)
		{
			_assignable = assignable;
			_entityState = entityState;
		}
		private void AddNewAssignment(AssignableSimpleDTO assignment)
		{
			var form = new TPPopupNotifier(assignment);
			form.FormClosing += form_FormClosing;
			popupList.Add(form);
			RecalculatePopupPosistions();
		}