public void Handle(DialogRemovedEventArgs args) { BeginOnUIThread(() => { Items.Remove(args.Dialog); }); }
public void Handle(DialogRemovedEventArgs args) { BeginOnUIThread(() => { #if LAYER_40 if (args.Dialog.Peer is TLPeerChannel) { for (var i = 0; i < Items.Count; i++) { if (args.Dialog.Peer.GetType() == Items[i].Peer.GetType() && args.Dialog.Peer.Id.Value == Items[i].Peer.Id.Value) { Items.RemoveAt(i); break; } } return; } #endif var dialog = Items.FirstOrDefault(x => x.Index == args.Dialog.Index); if (dialog != null) { Items.Remove(dialog); } }); }
public void Handle(DialogRemovedEventArgs args) { Execute.BeginOnUIThread(() => { var dialog = this.FirstOrDefault(x => x.Peer.Id == args.Dialog.Peer.Id); if (dialog != null) { Remove(dialog); } }); }
public void Handle(DialogRemovedEventArgs args) { if (With == args.Dialog.With) { Execute.BeginOnUIThread(() => { Items.Clear(); SelectedItems.Clear(); SelectionMode = Windows.UI.Xaml.Controls.ListViewSelectionMode.None; }); } }
public void Handle(DialogRemovedEventArgs args) { if (With == args.Dialog.With) { BeginOnUIThread(() => { LazyItems.Clear(); Items.Clear(); IsEmptyDialog = true; }); } }