Beispiel #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Create your application here
            SetContentView(Resource.Layout.Rent);

            var intent = Intent;

            var categoryid = intent.GetStringExtra("param");

            var rent = new RentModelMVC(categoryid, new PhoneService(this));

            var text  = FindViewById <TextView> (Resource.Id.expl);
            var phone = FindViewById <EditText> (Resource.Id.phone);

            text.Text  = rent.Explain;
            phone.Text = rent.Phone;
        }
 public RentViewModel(string categoryId)
 {
     this.rentmodel = new RentModelMVC(categoryId, null);
 }