Example #1
0
        public void Remove(INotifyPropertyChanged obj)
        {
            var message = new RemoveMessage {
                ObjectId = Objects[obj]
            };

            Objects.Remove(obj);
            _transport.Send(Json.Serialize(message));
        }
Example #2
0
        private void Handle(RemoveMessage removeMessage)
        {
            var objKey = Objects.FirstOrDefault(kvp => kvp.Value == removeMessage.ObjectId).Key;

            if (objKey == null || !Objects.ContainsKey(objKey))
            {
                return;
            }
            Objects.Remove(objKey);
            Collection.Remove(objKey);
        }
Example #3
0
 public void Remove(INotifyPropertyChanged obj)
 {
     var message = new RemoveMessage { ObjectId = Objects[obj] };
     Objects.Remove(obj);
     _transport.Send(Json.Serialize(message));
 }
Example #4
0
 private void Handle(RemoveMessage removeMessage)
 {
     var objKey = Objects.FirstOrDefault(kvp => kvp.Value == removeMessage.ObjectId).Key;
     if (objKey == null || !Objects.ContainsKey(objKey))
         return;
     Objects.Remove(objKey);
     Collection.Remove(objKey);
 }