Beispiel #1
0
        //public override bool OnCreateOptionsMenu(IMenu menu)
        //{
        //    MenuInflater.Inflate(Resource.Menu.RoutinesMenu, menu);
        //    return true;
        //}
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            switch (item.ItemId)
            {
            case Resource.Id.Add:
            {
                FragmentTransaction transcation = FragmentManager.BeginTransaction();
                GetNameDialog       signup      = new GetNameDialog();
                signup.Show(transcation, "Dialog Fragment");
                signup.mOnsignupDone += Signup_mOnOK;
                return(true);
            }
                //case Resource.Id.menuItem2:
                //    {
                //        // add your code
                //        return true;
                //    }
                //case Resource.Id.menuItem3:
                //    {
                //        // add your code
                //        return true;
                //    }
            }

            return(base.OnOptionsItemSelected(item));
        }
Beispiel #2
0
        private void BuildRoutine_Click(object sender, EventArgs e)
        {
            FragmentTransaction transcation = FragmentManager.BeginTransaction();
            GetNameDialog       signup      = new GetNameDialog();

            signup.Show(transcation, "Dialog Fragment");
            signup.mOnsignupDone += Signup_mOnOK;
        }