Exemple #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="UpdateEventArgs" /> class.
 /// </summary>
 /// <param name="eventType">The event that changed the data.</param>
 /// <param name="database">The database name.</param>
 /// <param name="table">The table name.</param>
 /// <param name="rowId">The rowid of the affected row.</param>
 public UpdateEventArgs(UpdateEventType eventType, string database, string table, long rowId)
 {
     Event    = eventType;
     Database = database;
     Table    = table;
     RowId    = rowId;
 }
Exemple #2
0
 internal UpdateEventArgs(string database, string table, UpdateEventType eventType, Int64 rowid)
 {
     Database = database;
     Table = table;
     Event = eventType;
     RowId = rowid;
 }
 internal UpdateEventArgs(string database, string table, UpdateEventType eventType, long rowid)
 {
     this.Database = database;
     this.Table    = table;
     this.Event    = eventType;
     this.RowId    = rowid;
 }
 internal UpdateEventArgs(string database, string table, UpdateEventType eventType, Int64 rowid)
 {
     Database = database;
     Table    = table;
     Event    = eventType;
     RowId    = rowid;
 }
Exemple #5
0
 public void SendEvent(UpdateEventType type)
 {
     if (EventHandler != null)
     {
         EventHandler(this, new UpdateEvent(type));
     }
 }
Exemple #6
0
        public void SendEvent(UpdateEventType type, string value)
        {
            EventHandler <UpdateEvent> temp = EventHandler;

            if (temp != null)
            {
                temp(this, new UpdateEvent(type, value));
            }
        }
        private static UpdateType GetUpdateType(UpdateEventType type)
        {
            switch (type)
            {
            case UpdateEventType.Delete:
                return(UpdateType.Delete);

            case UpdateEventType.Insert:
                return(UpdateType.Insert);

            case UpdateEventType.Update:
                return(UpdateType.Update);
            }
            return(UpdateType.None);
        }
Exemple #8
0
 public UpdateEvent(UpdateEventType type, bool value)
 {
     Type      = type;
     BoolValue = value;
 }
Exemple #9
0
 public UpdateEvent(UpdateEventType type)
 {
     Type = type;
 }
 public UpdateEvent(UpdateEventType type, CecAlert warning)
 {
     Type       = type;
     AlertValue = warning;
 }
 public void SendEvent(UpdateEventType type, string value)
 {
     EventHandler?.Invoke(this, new UpdateEvent(type, value));
 }
 public UpdateEventSubscription(NotifyEventCallback callback, UpdateEventType updateEventType)
 {
     this.callback        = callback;
     this.updateEventType = updateEventType;
 }
Exemple #13
0
 public UpdateEvent(UpdateEventType type, string value)
 {
     Type = type;
       StringValue = value;
 }
Exemple #14
0
 public UpdateEvent(UpdateEventType type, int value)
 {
     Type = type;
       IntValue = value;
 }
Exemple #15
0
 public UpdateEvent(UpdateEventType type, bool value)
 {
     Type = type;
       BoolValue = value;
 }
Exemple #16
0
 public UpdateEvent(UpdateEventType type)
 {
     Type = type;
 }
Exemple #17
0
 public UpdateEvent(UpdateEventType type, int value)
 {
     Type     = type;
     IntValue = value;
 }
Exemple #18
0
 public UpdateEvent(UpdateEventType type, string value)
 {
     Type        = type;
     StringValue = value;
 }
Exemple #19
0
 public UpdateEvent(LibCECConfiguration config)
 {
     Type = UpdateEventType.Configuration;
       ConfigValue = config;
 }
Exemple #20
0
 public UpdateEventArgs(UpdateEventType type)
 {
     eventType = type;
 }
Exemple #21
0
 public void SendEvent(UpdateEventType type, string value)
 {
     if (EventHandler != null)
     EventHandler(this, new UpdateEvent(type, value));
 }
Exemple #22
0
 public void SendEvent(UpdateEventType type, bool value)
 {
     EventHandler<UpdateEvent> temp = EventHandler;
       if (temp != null)
     temp(this, new UpdateEvent(type, value));
 }
 public static void SubscribeNotifyEvent(UpdateEventType updateEventType, NotifyEventCallback callback)
 {
     updateEventSubscriptions.Add(new UpdateEventSubscription(callback, updateEventType));
 }
Exemple #24
0
 public UpdateEventArgs(UpdateEventType type, object data)
 {
     eventType = type;
     eventData = data;
 }
Exemple #25
0
 public RegisteredEventType Update(UpdateEventType updateRegistry)
 {
     throw new NotImplementedException();
 }