protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

            var intent = Intent;

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

            var car = new BuyModelMVC(carid, new PhoneService(this));

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

            text.Text  = car.Explain;
            phone.Text = car.Phone;
        }
Esempio n. 2
0
 public BuyViewModel(string carId)
 {
     this.buymodel = new BuyModelMVC(carId, null);
 }