PreferencesPanel in work
This commit is contained in:
@@ -88,3 +88,19 @@ void KissCount::SetAccountAmount(int month, int year, wxString accountId, double
|
||||
{
|
||||
_db->SetAccountAmount(month, year, accountId, amount);
|
||||
}
|
||||
|
||||
void KissCount::InsertAccount(struct Account ac)
|
||||
{
|
||||
_db->InsertAccount(_user, ac);
|
||||
}
|
||||
|
||||
void KissCount::UpdateAccount(struct Account ac)
|
||||
{
|
||||
_db->UpdateAccount(ac);
|
||||
}
|
||||
|
||||
void KissCount::DeleteAccount(struct Account ac)
|
||||
{
|
||||
_db->DeleteAccount(ac);
|
||||
_user->_accounts.erase(ac.id);
|
||||
}
|
||||
|
@@ -25,6 +25,9 @@ class KissCount
|
||||
void AddOperation(struct operation op);
|
||||
void DeleteOperation(struct operation op);
|
||||
void SetAccountAmount(int month, int year, wxString accountId, double value);
|
||||
void InsertAccount(struct Account ac);
|
||||
void UpdateAccount(struct Account ac);
|
||||
void DeleteAccount(struct Account ac);
|
||||
|
||||
private:
|
||||
wxUI* _wxUI;
|
||||
|
Reference in New Issue
Block a user