void imgGlobo_Tap(object sender, System.Windows.Input.GestureEventArgs e) { Image img = sender as Image; if (img.Name == "imgUno") { if (boolUva) { gano(); } else { Uno.Begin(); boolUno = true; } } else if (img.Name == "imgUva") { if (boolUno) { gano(); } else { Uva.Begin(); boolUva = true; } } else { } }
void timer_Tick(object sender, EventArgs e) { switch (contador) { case 0: recurso.reporducirSonido("/Sonidos/Voces/TocaComienzaU.mp3"); break; case 1: break; case 2: break; case 3: recurso.reporducirSonido("/Sonidos/Voces/Helado.mp3"); break; case 4: Helado.Begin(); break; case 5: recurso.reporducirSonido("/Sonidos/Voces/Globo.mp3"); break; case 6: globo.Begin(); break; case 7: recurso.reporducirSonido("/Sonidos/Voces/Television.mp3"); break; case 8: televisor.Begin(); break; case 9: recurso.reporducirSonido("/Sonidos/Voces/uva.mp3"); break; case 10: Uva.Begin(); break; case 11: recurso.reporducirSonido("/Sonidos/Voces/Uno.mp3"); break; case 12: Uno.Begin(); break; case 13: timer.Stop(); asignarEventos(); break; } contador++; }
static void Main(string[] args) { var objeto = new Usuario { Id = 1, Nombre = "Nicolas", Perfil = new List <Perfil> { new Perfil { Tipo = "Normal", Entrega = new Entrega { Proveedor = "Nicolas" } }, new Perfil { Tipo = "Punchi", Entrega = new Entrega { Proveedor = "Jebus" } } } }; //var instanciado = RemoteCall.Instance<Uno>(); RemoteCall.Invoke <Dos>("Saludar", new object[] { "hola amigos" }); var source = new Uno { Nombre = "Nicolas", Apellido = "Buzzi" }; var dic = new Dictionary <string, string>(); dic.Add("Nombre", "Name"); dic.Add("Apellido", "SurName"); var mapeo = source.MapProperty <Uno, Dos>(dic); var listOfObjects = new List <Usuario>(); listOfObjects.Add(objeto); listOfObjects.Add(objeto); //Inicializamos el mapper con nuestra configuracion para adaptarla a viewModel Mapper.ConfigureMapper(new MapperConfiguration { Name = "ViewModel" }); /*Convetimos Entidad a DTO*/ List <UsuarioViewModel> resultadosViewModel = listOfObjects.MapList(); /*Convertimos los ViewModel a Entidades*/ List <Usuario> entidadesDeViewModel = resultadosViewModel.MapToEntityList(); //Inicializamos el mapper con nuestra configuracion para adaptarla a DTOS Mapper.ConfigureMapper(new MapperConfiguration { Name = "DTO" }); //Convertimos el resultado de ViewModels a DTO List <UsuarioDTO> resultadosDTO = resultadosViewModel.MapList(); //Convetimos los DTO a entidad var resultEntity = resultadosDTO.MapToEntityList(); Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Todo correcto"); Console.ReadLine(); }