protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.ac_states); mBtnAction = FindViewById <ActionProcessButton>(Resource.Id.btnAction); mBtnSubmit = FindViewById <SubmitProcessButton>(Resource.Id.btnSubmit); mBtnGenerate = FindViewById <GenerateProcessButton>(Resource.Id.btnGenerate); FindViewById(Resource.Id.btnProgressLoading).SetOnClickListener(this); FindViewById(Resource.Id.btnProgressError).SetOnClickListener(this); FindViewById(Resource.Id.btnProgressComplete).SetOnClickListener(this); FindViewById(Resource.Id.btnProgressNormal).SetOnClickListener(this); }
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; }; }