-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ | |
|
||
public partial class MainPage : ContentPage | ||
{ | ||
private readonly AccountRepository _accountRepository; | ||
private readonly AccountRepository accountRepository; | ||
|
||
public MainPage(AccountRepository accountRepository) | ||
{ | ||
_accountRepository = accountRepository; | ||
this.accountRepository = accountRepository; | ||
InitializeComponent(); | ||
} | ||
|
||
|
@@ -24,7 +24,7 @@ private void AddAccountClicked(object sender, EventArgs e) | |
Balance = Random.Shared.Next(0, 10), | ||
Email = "[email protected]" | ||
}; | ||
_accountRepository.CreateAccount(account); | ||
accountRepository.CreateAccount(account); | ||
GetAccounts(); | ||
} | ||
|
||
|
@@ -38,7 +38,7 @@ private void UpdateAccountClicked(object sender, EventArgs e) | |
return; | ||
|
||
account.Balance = 0; | ||
_accountRepository.UpdateAccount(account); | ||
accountRepository.UpdateAccount(account); | ||
GetAccounts(); | ||
} | ||
|
||
|
@@ -51,22 +51,22 @@ private void DeleteAccountClicked(object sender, EventArgs e) | |
if (account is null) | ||
return; | ||
|
||
_accountRepository.DeleteAccount(account); | ||
accountRepository.DeleteAccount(account); | ||
GetAccounts(); | ||
} | ||
|
||
private void Filter1AccountClicked(object sender, EventArgs e) | ||
{ | ||
collectionView.ItemsSource = _accountRepository.QueryAccountWithPositiveBalance(); | ||
collectionView.ItemsSource = accountRepository.QueryAccountWithPositiveBalance(); | ||
} | ||
|
||
private void Filter2AccountClicked(object sender, EventArgs e) | ||
{ | ||
collectionView.ItemsSource = _accountRepository.LinqZeroBalance(); | ||
collectionView.ItemsSource = accountRepository.LinqZeroBalance(); | ||
} | ||
|
||
private void GetAccounts() | ||
{ | ||
collectionView.ItemsSource = _accountRepository.GetAccounts(); | ||
collectionView.ItemsSource = accountRepository.GetAccounts(); | ||
} | ||
} |
Binary file modified
BIN
-33.5 KB
(93%)
LocalPackages/VladislavAntonyuk.MaterialCalendarView.1.9.0.nupkg
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters