Exemplo n.º 1
0
        public void Handle(KeysDeletedMessage message)
        {
            if (dbNumber == message.DatabaseName)
            {
                ChangeKeyCount(-message.Keys.Count);

                var akey = message.Keys.FirstOrDefault();
                if (akey != null)
                {
                    var patharr = akey.Split(new[] { urnSeparator }, StringSplitOptions.RemoveEmptyEntries);
                    ExpandChildNode(Children, patharr.Take(patharr.Length - 1).ToList());

                    eventAggregator.PublishOnUIThread(new AddKeyMessage {
                        ParentDatabase = this
                    });
                }
            }
        }
Exemplo n.º 2
0
 public void Handle(KeysDeletedMessage message)
 {
     StatusBarTextBlock = "Deleted " + message.Keys.Count + " Keys";
 }