feature<Statistics>: finish statistiscs

This commit is contained in:
leo 2024-02-23 19:16:28 +08:00
parent 49f6ad0407
commit e070b79d2c
10 changed files with 632 additions and 4 deletions

View file

@ -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;
}
}
}
}