Пример #1
0
 void OnSourceDataChanged(object sender, DextopStoreEventArgs e)
 {
     var remote = Remote;
     Send(new Message
     {
         load = Serialize(e.Event.Load),
         add = Serialize(e.Event.Create),
         remove = Serialize(e.Event.Destroy),
         update = Serialize(e.Event.Update)
     });
 }
Пример #2
0
        void OnSourceDataChanged(object sender, DextopStoreEventArgs e)
        {
            var remote = Remote;

            Send(new Message
            {
                load   = Serialize(e.Event.Load),
                add    = Serialize(e.Event.Create),
                remove = Serialize(e.Event.Destroy),
                update = Serialize(e.Event.Update)
            });
        }
Пример #3
0
        void OnSourceDataChanged(object sender, DextopStoreEventArgs e)
        {
            var remote = Remote;

            if (subscribed && remote != null)
            {
                var msg = new Message
                {
                    load   = e.Event.Clear ? Serialize(new object[0]) : null,
                    add    = Serialize(e.Event.Create),
                    remove = Serialize(e.Event.Destroy),
                    update = Serialize(e.Event.Update)
                };
                remote.SendMessage(msg);
            }
        }
Пример #4
0
 void OnSourceDataChanged(object sender, DextopStoreEventArgs e)
 {
     var remote = Remote;
     if (subscribed && remote != null)
     {
         var msg = new Message
         {
             load = e.Event.Clear ? Serialize(new object[0]) : null,
             add = Serialize(e.Event.Create),
             remove = Serialize(e.Event.Destroy),
             update = Serialize(e.Event.Update)
         };
         remote.SendMessage(msg);
     }
 }