Beispiel #1
0
        public static string mostrar(Tempera temp1)
        {
            string ret = "";

            if (temp1 != null)
            {
                ret = temp1.mostrar();
            }
            return(ret);
        }
Beispiel #2
0
        private string mostrar()
        {
            string cadena = "";

            foreach (Tempera temp1 in this._temperas)
            {
                if ((object)temp1 != null)
                {
                    cadena += Tempera.mostrar(temp1);
                }
            }
            return(cadena);
        }
 public static int buscar(Paleta p, Tempera t)
 {
     if (!Object.Equals(p, null) && t != null)
     {
         for (int i = 0; i < p.colores.Length; i++)
         {
             if (p.colores[i] == t)
             {
                 return(i);
             }
         }
     }
     return(-1);
 }