//private readonly IOpenWebService _openWebService;

        public DetailViewModel(CharacterItemViewModel character)
        {
            // TODO: AM. Crear DetailVioewModel. Crear la propiedad Character y asignarla en el constructor


            //_openWebService = DependencyService.Get<IOpenWebService> ();

            // TODO: AN. Diseñar la ventana de Detalle
        }
		//private readonly IOpenWebService _openWebService;

		public DetailViewModel (CharacterItemViewModel character)
		{
			// TODO: AM. Crear DetailVioewModel. Crear la propiedad Character y asignarla en el constructor


			//_openWebService = DependencyService.Get<IOpenWebService> ();

			// TODO: AN. Diseñar la ventana de Detalle
		}
示例#3
0
 public DetailViewModel(CharacterItemViewModel character, IOpenWebService openWebService = null)
 {
     Character       = character;
     _openWebService = openWebService ?? DependencyService.Get <IOpenWebService>();
 }
		public DetailViewModel (CharacterItemViewModel character)
		{
			Character = character;
			_openWebService = DependencyService.Get<IOpenWebService> ();
		}