public void setImage(Asset assetImage) { pictureBox1.Image = Image.FromFile(assetImage.path); //pictureBox1.Location = new System.Drawing.Point(assetImage.x, assetImage.y); }
private void setIOA() { if (listaAssets.Count > 0) { IOA.Show(); IOA.setImage(listaAssets.First()); currentAsset = listaAssets.First(); IN.Hide(); listaAssets.RemoveAt(0); } else { IOA.Hide(); IN.Hide(); MyTimer.Stop(); expe.getElementos(); } }
private void setIOA() { if (listaAssets.Count > 0) { int randomImagen = random.Next(0,listaAssets.Count-1); IOA.Show(); IOA.setImage(listaAssets[randomImagen]); currentAsset = listaAssets.First(); IN.Hide(); listaAssets.RemoveAt(randomImagen); } else { IOA.Hide(); IN.Hide(); MyTimer.Stop(); expe.getElementos(); } }