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)); }
///<summary>Triggers an event that causes a signal to be sent to all other computers telling them what kind of locally stored data needs to be updated. Either supply a set of flags for the types, or supply a date if the appointment screen needs to be refreshed. Yes, this does immediately refresh the local data, too. The AllLocal override does all types except appointment date for the local computer only, such as when starting up.</summary> public static void SetInvalid(bool onlyLocal) { FormOpenDental.S_DataValid_BecomeInvalid(new ValidEventArgs(DateTime.MinValue, new[] { InvalidType.AllLocal }, true, 0)); }
/* * ///<summary>Triggers an event that causes a signal to be sent to all other computers telling them what kind of locally stored data needs to be updated. Either supply a set of flags for the types, or supply a date if the appointment screen needs to be refreshed. Yes, this does immediately refresh the local data, too. The AllLocal override does all types except appointment date for the local computer only, such as when starting up.</summary> * public static void SetInvalid(List<int> itypes){ * OnBecameInvalid(new OpenDental.ValidEventArgs(DateTime.MinValue,itypes,false,0)); * }*/ ///<summary>Triggers an event that causes a signal to be sent to all other computers telling them what kind of locally stored data needs to be updated. Either supply a set of flags for the types, or supply a date if the appointment screen needs to be refreshed. Yes, this does immediately refresh the local data, too. The AllLocal override does all types except appointment date for the local computer only, such as when starting up.</summary> public static void SetInvalid(params InvalidType[] arrayITypes) { FormOpenDental.S_DataValid_BecomeInvalid(new ValidEventArgs(DateTime.MinValue, arrayITypes, false, 0)); }