コード例 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.payment_activity);

            mDependencyHandler = new DependencyHandler(
                this,
                FindViewById <CardInputWidget>(Resource.Id.card_input_widget),
                FindViewById <ListView>(Resource.Id.listview));

            Button saveButton = FindViewById <Button>(Resource.Id.save);

            mDependencyHandler.AttachAsyncTaskTokenController(saveButton);

            Button saveRxButton = FindViewById <Button>(Resource.Id.saverx);

            mDependencyHandler.AttachRxTokenController(saveRxButton);

            Button saveIntentServiceButton = FindViewById <Button>(Resource.Id.saveWithService);

            mDependencyHandler.AttachIntentServiceTokenController(this, saveIntentServiceButton);
        }