public static void SetInvalidTask(long taskNum, bool isPopup) { List <InvalidType> listITypes = new List <InvalidType>(); if (isPopup) { listITypes.Add(InvalidType.TaskPopup); //we also need to tell the database about all the users with unread tasks TaskUnreads.AddUnreads(taskNum, Security.CurUser.UserNum); } else { listITypes.Add(InvalidType.Task); } FormOpenDental.S_DataValid_BecomeInvalid(new ValidEventArgs(DateTime.MinValue, listITypes.ToArray(), PrefC.GetBool(PrefName.DoLimitTaskSignals), taskNum)); }
public static void SetInvalidTask(long taskNum, bool isPopup) { List <int> itypeList = new List <int>(); if (isPopup) { itypeList.Add((int)InvalidType.TaskPopup); //we also need to tell the database about all the users with unread tasks TaskUnreads.AddUnreads(taskNum, Security.CurUser.UserNum); } else { itypeList.Add((int)InvalidType.Task); } OnBecameInvalid(new OpenDental.ValidEventArgs(DateTime.MinValue, itypeList, false, taskNum)); }