/// ----------------------------------------------------------------------- /// <summary> /// Show more details on the seletected child /// </summary> /// ----------------------------------------------------------------------- private void ExcludeFolder(object sender, RoutedEventArgs e) { var menuItem = sender as MenuItem; var parent = menuItem?.Parent as ContextMenu; var dirItem = parent?.Tag as ITreeItem; _appModel.Exclude(dirItem); TheChart.Rerender(); }
/// ------------------------------------------------------------------------------------- /// <summary> /// ctor /// </summary> /// ------------------------------------------------------------------------------------- public MainWindow() { InitializeComponent(); this.DataContext = _appModel; _appModel.OnDataChanged += () => { Dispatcher.Invoke(() => { TheChart.Rerender(); }); }; TheChart.OnContentClicked += (treeItem) => { _appModel.ShowContent(treeItem); }; }