Ejemplo n.º 1
0
        private void ListBefore_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            CallStackInfoAgregated info = (CallStackInfoAgregated)this.ListBefore.SelectedItem;

            //change the datagrid selected item to the one here
            SnapshotEntity entity = (SnapshotEntity)DataContext;

            entity.CurrentAgreg = entity.CallstackAg.Where(p => p.MethodHandle == info.MethodHandle);
        }
Ejemplo n.º 2
0
        private void ListCurrent_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            SnapshotEntity         entity = (SnapshotEntity)DataContext;
            CallStackInfoAgregated info   = (CallStackInfoAgregated)this.ListCurrent.SelectedItem;

            //query the before and after list and update the binding
            this.ListBefore.ItemsSource = entity.CallstackAg.Where(p => p.MethodHandle == info.CalledByHandle);
            this.ListAfter.ItemsSource  = entity.CallstackAg.Where(p => p.CalledByHandle == info.MethodHandle);
        }