mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
feature<Statistics>: finish statistiscs
This commit is contained in:
parent
49f6ad0407
commit
e070b79d2c
10 changed files with 632 additions and 4 deletions
|
@ -188,6 +188,14 @@ namespace SourceGit.Views {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async void OpenStatistics(object sender, RoutedEventArgs e) {
|
||||
if (DataContext is ViewModels.Repository repo) {
|
||||
var dialog = new Statistics() { DataContext = new ViewModels.Statistics(repo.FullPath) };
|
||||
await dialog.ShowDialog(TopLevel.GetTopLevel(this) as Window);
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue