Пример #1
0
 public override bool OnOptionsItemSelected(IMenuItem item)
 {
     switch (item.ItemId)
     {
     case Resource.Id.menu_add:
         // Show Add event screen
         Intent intent = new Intent(mActivity, typeof(AddOrderFirstActivity));
         mActivity.StartActivityForResult(intent, ConstantsDroid.ORDERS_LIST_REQUEST_CODE);
         mActivity.OverridePendingTransition(Resource.Animation.animation_enter,
                                             Resource.Animation.animation_leave);
         break;
     }
     return(true);
 }
Пример #2
0
        private void Btn_cancel_Click(object sender, EventArgs e)
        {
            mActivity.Finish();
            Intent intent = new Intent(mActivity, typeof(HomeActivity));

            intent.PutExtra("addOrder", true);
            StartActivity(intent);
            mActivity.OverridePendingTransition(Resource.Animation.animation_enter,
                                                Resource.Animation.animation_leave);
        }