Exemplo n.º 1
0
 public void signoutButton(object sender, Android.Content.DialogClickEventArgs e)
 {
     //base.OnBackPressed();
     //this.FinishAffinity();
     StartActivity(typeof(login));
     OverridePendingTransition(Resource.Animation.fade_in, Resource.Animation.fade_out);
 }
Exemplo n.º 2
0
        public void OnSelectItemForCreation(object sender, Android.Content.DialogClickEventArgs args)
        {
            var selected = itemList[args.Which];
            var mainview = Mvx.Resolve <MainViewModel>();

            if (selected == Strings.AddAccountLabel)
            {
                mainview.GoToAddAccountCommand.Execute();
            }
            else if (selected == Strings.AddIncomeLabel)
            {
                mainview.GoToAddPaymentCommand.Execute(PaymentType.Income.ToString());
            }
            else if (selected == Strings.AddExpenseLabel)
            {
                mainview.GoToAddPaymentCommand.Execute(PaymentType.Expense.ToString());
            }
            else if (selected == Strings.AddTransferLabel)
            {
                mainview.GoToAddPaymentCommand.Execute(PaymentType.Transfer.ToString());
            }
        }
Exemplo n.º 3
0
 public void cancelButton(object sender, Android.Content.DialogClickEventArgs e)
 {
 }