Interaction logic for HistoryExplorerWindow.xaml
Inheritance: MahApps.Metro.Controls.MetroWindow
Ejemplo n.º 1
0
 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();
 }
Ejemplo 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();
 }