コード例 #1
0
        /// <summary>
        /// Handles a delete event
        /// </summary>
        /// <param name="pushEvent"></param>
        private void HandleDeleteEvent(DeleteEvent deleteEvent)
        {
            this.ReadConversationFromLocalDB();

            DispatcherHelper.InvokeOnUiThread(() =>
            {
                this.NotifyPropertyChanged("IsLoaded");
            });
        }
コード例 #2
0
 private void HandleDeleteEvent(DeleteEvent deleteEvent)
 {
     DispatcherHelper.InvokeOnUiThread(() =>
     {
         lock (this)
         {
             try
             {
                 this.messages.Clear();
                 this.LoadMessagesForConversations();
             }
             catch (Exception)
             {
             }
         }
     });
 }