protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.ac_sign_in);
            EditText editEmail    = FindViewById <EditText>(Resource.Id.editEmail);
            EditText editPassword = FindViewById <EditText>(Resource.Id.editPassword);

            ProgressGenerator   progressGenerator = new ProgressGenerator(this);
            ActionProcessButton btnSignIn         = FindViewById <ActionProcessButton>(Resource.Id.btnSignIn);
            Bundle extras = Intent.Extras;

            if (extras != null && extras.GetBoolean(EXTRAS_ENDLESS_MODE))
            {
                btnSignIn.setMode(ActionProcessButton.Mode.ENDLESS);
            }
            else
            {
                btnSignIn.setMode(ActionProcessButton.Mode.PROGRESS);
            }
            btnSignIn.Click += (object sender, EventArgs e) => {
                this.RunOnUiThread(() => {
                    progressGenerator.start(btnSignIn, this);
                    btnSignIn.Enabled    = false;
                    editEmail.Enabled    = false;
                    editPassword.Enabled = false;
                });
            };
        }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			SetContentView(Resource.Layout.ac_upload);

			ProgressGenerator progressGenerator = new ProgressGenerator(this);
			GenerateProcessButton btnUpload =FindViewById<GenerateProcessButton>(Resource.Id.btnUpload);
			btnUpload.Click += (object sender, EventArgs e) => {
				progressGenerator.start(btnUpload,this);
				btnUpload.Enabled=false;
			};
		}
Esempio n. 3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.ac_upload);

            ProgressGenerator     progressGenerator = new ProgressGenerator(this);
            GenerateProcessButton btnUpload         = FindViewById <GenerateProcessButton>(Resource.Id.btnUpload);

            btnUpload.Click += (object sender, EventArgs e) => {
                progressGenerator.start(btnUpload, this);
                btnUpload.Enabled = false;
            };
        }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			SetContentView(Resource.Layout.ac_message);

			EditText editMessage =FindViewById<EditText>(Resource.Id.editMessage);

			ProgressGenerator progressGenerator = new ProgressGenerator(this);
			SubmitProcessButton btnSend =FindViewById<SubmitProcessButton>(Resource.Id.btnSend);
			btnSend.Click += (object sender, EventArgs e) => {
				progressGenerator.start(btnSend,this);
				btnSend.Enabled=false;
				editMessage.Enabled=false;
			};
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.ac_message);

            EditText editMessage = FindViewById <EditText>(Resource.Id.editMessage);

            ProgressGenerator   progressGenerator = new ProgressGenerator(this);
            SubmitProcessButton btnSend           = FindViewById <SubmitProcessButton>(Resource.Id.btnSend);

            btnSend.Click += (object sender, EventArgs e) => {
                progressGenerator.start(btnSend, this);
                btnSend.Enabled     = false;
                editMessage.Enabled = false;
            };
        }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			SetContentView (Resource.Layout.ac_sign_in);
			EditText editEmail = FindViewById<EditText>(Resource.Id.editEmail);
			EditText editPassword =FindViewById<EditText>(Resource.Id.editPassword);

			ProgressGenerator progressGenerator = new ProgressGenerator(this);
			ActionProcessButton btnSignIn = FindViewById<ActionProcessButton>(Resource.Id.btnSignIn);
			Bundle extras = Intent.Extras;
			if(extras != null && extras.GetBoolean(EXTRAS_ENDLESS_MODE)) {
				btnSignIn.setMode(ActionProcessButton.Mode.ENDLESS);
			} else {
				btnSignIn.setMode(ActionProcessButton.Mode.PROGRESS);
			}
			btnSignIn.Click += (object sender, EventArgs e) => {
				this.RunOnUiThread(()=>{
				progressGenerator.start(btnSignIn,this);
				btnSignIn.Enabled=false;
				editEmail.Enabled=false;
				editPassword.Enabled=false;
				});
			};
		}