Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            _BtnSignUp   = FindViewById <Button>(Resource.Id.btnSignUp);
            _ProgressBar = FindViewById <ProgressBar>(Resource.Id.progressBar1);

            _BtnSignUp.Click += (object sender, EventArgs args) =>
            {
                //Pull up dialog
                FragmentTransaction transaction  = FragmentManager.BeginTransaction();
                DialogSignUp        signUpDialog = new DialogSignUp();
                signUpDialog.Show(transaction, "dialog fragment");

                signUpDialog._OnSignUpComplete += signUpDialog__OnSignUpComplete;
            };
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            _BtnSignUp = FindViewById<Button>(Resource.Id.btnSignUp);
            _ProgressBar = FindViewById<ProgressBar>(Resource.Id.progressBar1);

            _BtnSignUp.Click += (object sender, EventArgs args) =>
            {
                //Pull up dialog
                FragmentTransaction transaction = FragmentManager.BeginTransaction();
                DialogSignUp signUpDialog = new DialogSignUp();
                signUpDialog.Show(transaction, "dialog fragment");

                signUpDialog._OnSignUpComplete += signUpDialog__OnSignUpComplete;
            };
        }