コード例 #1
0
ファイル: Signals.cs プロジェクト: luisurbinanet/apolloniax
        ///<summary>After a refresh, this is used to get a single value representing all flags of types that need to be refreshed.   Types of Date are not included.</summary>
        public static InvalidTypes GetInvalidTypes(Signal[] signalList)
        {
            InvalidTypes retVal = 0;

            for (int i = 0; i < signalList.Length; i++)
            {
                if (signalList[i].SigType != SignalType.Invalid)
                {
                    continue;
                }
                if (signalList[i].ITypes == InvalidTypes.Date)
                {
                    continue;
                }
                retVal = retVal | signalList[i].ITypes;
            }
            return(retVal);
        }
コード例 #2
0
 ///<summary></summary>
 public ValidEventArgs(DateTime dateViewing, InvalidTypes itypes, bool onlyLocal) : base()
 {
     this.dateViewing = dateViewing;
     this.itypes      = itypes;
     this.onlyLocal   = onlyLocal;
 }
コード例 #3
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.</summary>
 public static void SetInvalid(InvalidTypes itypes)
 {
     OnBecameInvalid(new OpenDental.ValidEventArgs(DateTime.MinValue, itypes, false));
 }