예제 #1
0
        public DetailDoctorViewModel(CollectionDoctor collection)
        {
            try
            {
                var result = collection.street.Replace(' ', '+');
                collectionDoctor              = new CollectionDoctor();
                collectionDoctor.ranking      = collection.ranking;
                collectionDoctor.street       = collection.street;
                collectionDoctor.state        = collection.state;
                collectionDoctor.city         = collection.city;
                collectionDoctor.postcode     = collection.postcode;
                collectionDoctor.phone        = collection.phone;
                collectionDoctor.email        = collection.email;
                collectionDoctor.name         = collection.name;
                collectionDoctor.image        = collection.image;
                collectionDoctor.streetFromat = urlplace + result;

                Logout = new Command(DoLogout);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }
예제 #2
0
 public DetailDoctorPage(CollectionDoctor collection)
 {
     InitializeComponent();
     this.BindingContext = new DetailDoctorViewModel(collection);
 }