Пример #1
0
        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)); };
        }
Пример #2
0
 public void ItemDeleted(T item)
 {
     CashflowData.Delete(item);
     Finish();
 }
Пример #3
0
 public void ItemSaved(T item)
 {
     CashflowData.InsertOrReplace(item);
     Finish();
 }
Пример #4
0
 public void ItemDeleted(TItem item)
 {
     CashflowData.Delete(item);
     UpdateListAdapter();
 }
Пример #5
0
 public void ItemSaved(TItem item)
 {
     CashflowData.InsertOrReplace(item);
     UpdateListAdapter();
 }