PreferencesPanel in work

This commit is contained in:
2010-06-21 10:53:43 +02:00
parent 36c01b0c56
commit 083054b376
15 changed files with 346 additions and 32 deletions

View File

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

View File

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