protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Main); CashflowData.Initialize(); //Toolbar toolbar = FindViewById<Toolbar>(Resource.Id.toolbar); //SetActionBar(toolbar); //ActionBar.Title = "My Toolbar"; UpdateBalance(); Button transaction = FindViewById <Button>(Resource.Id.buttonTransaction); transaction.Click += delegate { StartActivityType(typeof(TransactionListFragmentActivity)); }; Button plannedTransactions = FindViewById <Button>(Resource.Id.buttonPlannedTransactions); plannedTransactions.Click += delegate { StartActivityType(typeof(PlannedTransactionListFragmentActivity)); }; Button budgets = FindViewById <Button>(Resource.Id.buttonBudgets); budgets.Click += delegate { StartActivityType(typeof(BudgetListFragmentActivity)); }; Button milestone = FindViewById <Button>(Resource.Id.buttonMilestone); milestone.Click += delegate { StartActivityType(typeof(MilestoneListFragmentActivity)); }; Button categories = FindViewById <Button>(Resource.Id.buttonCategories); categories.Click += delegate { StartActivityType(typeof(CategoryListFragmentActivity)); }; }
public void ItemDeleted(T item) { CashflowData.Delete(item); Finish(); }
public void ItemSaved(T item) { CashflowData.InsertOrReplace(item); Finish(); }
public void ItemDeleted(TItem item) { CashflowData.Delete(item); UpdateListAdapter(); }
public void ItemSaved(TItem item) { CashflowData.InsertOrReplace(item); UpdateListAdapter(); }