Added comments to CoinCollection code, and finished a basic framework for API key entry.

This commit is contained in:
alphafetus committed 2023-12-01 23:15:27 -05:00
1 parent 683a2cf87b
commit ba04d31c3e
4 files changed
+89 -30

No files matched your search

+1 -2
View File
@@ -17,11 +17,10 @@ public partial class App : Application {
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) {
var coins = new CoinDatabase();
desktop.MainWindow = new MainWindow {
DataContext = new MainWindowViewModel(coins, !coins.TryInitApiClient()),
DataContext = new MainWindowViewModel(coins),
};
// Allow the application to save the database when it exits.
// The issue is that this will break if the database is not initialized here.
desktop.Exit += (sender, args) => {
coins.UpdateCollection("CollectionTable");
};