コード例 #1
0
ファイル: Rating.cs プロジェクト: MinxLevy/PedibuRatingApp
        public Rating NewInstance(String SearchText)
        {
            Bundle args = new Bundle();

            args.PutString(searchText.Text, SearchText);
            DriversListFrag frag = new DriversListFrag();

            frag.Arguments = Arguments;
            return(new Rating {
                Arguments = args
            });
        }
コード例 #2
0
ファイル: Rating.cs プロジェクト: MinxLevy/PedibuRatingApp
        private void SubmitButton_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(searchText.Text))
            {
                Snackbar snackBar = Snackbar.Make(view, "Please Enter A Value ", Snackbar.LengthShort);
                snackBar.Show();
            }
            else
            {
                // Rating rate = new Rating();
                // rate.inputText = searchText.Text;

                FragmentTransaction transaction = this.FragmentManager.BeginTransaction();

                Fragment fragment = new DriversListFrag();
                Bundle   args     = new Bundle();
                args.PutString("search_text", searchText.Text);

                fragment.Arguments = args;
                transaction.Replace(Resource.Id.FramePage, fragment);
                transaction.Commit();
            }
        }