protected void ShowContactLogExecuted()
 {
     var client = ModelContext.GetClientByContact(_interlocutor);
     var bare = XmppIdConverter.Jid(_interlocutor).Bare;
     var vm = new HistoryExplorerViewModel(client, bare);
     var wnd = new HistoryExplorerWindow();
     wnd.DataContext = vm;
     vm.StartListen();
     wnd.Closed += (sender, args) => vm.StopListen();
     wnd.Show();
 }
Esempio n. 2
0
 private void ShowLogExecuted()
 {
     var client = ModelContext.GetClientByRoom(Room);
     var vm = new HistoryExplorerViewModel(client, Context.Bare);
     var wnd = new HistoryExplorerWindow();
     wnd.DataContext = vm;
     vm.StartListen();
     wnd.Closed += (sender, args) => vm.StopListen();
     wnd.Show();
 }