예제 #1
0
 private void AgregarColor()
 {
     if (imagenGlobal == null)
     {
         CargarImagen();
     }
     else
     {
         if (nameTexture.Text.Equals("") || colorR.Equals(""))
         {
             //vacio
             //rLabel.Text = "vacio";
         }
         else
         {
             //rLabel.Text = "lleno";
             //tiene contenido
             int cr = Int32.Parse((string)colorR);
             int cg = Int32.Parse((string)colorG);
             int cb = Int32.Parse((string)colorB);
             dato.Editar(nameTexture.Text, cr, cg, cb);
             Consultar();
         }
     }
 }