Beispiel #1
0
        public static string Mostrar(Tempera t)
        {
            string retorno = "";

            if (t != null)
            {
                retorno = t.Mostrar();
            }
            return(retorno);
        }
Beispiel #2
0
        private string Mostrar()
        {
            string retorno = "";

            retorno += "Cantidad maxima: " + this._cantidadMaxima.ToString() + " - Temperas: ";
            foreach (Tempera t in this._temperas)
            {
                retorno += "\n" + Tempera.Mostrar(t);
            }
            return(retorno);
        }
Beispiel #3
0
        public int ObtenerIndice(Tempera t1)
        {
            int i;

            for (i = 0; i < this._colores.GetLength(0); i++)
            {
                if (this._colores[i] == t1)
                {
                    return(i);
                }
            }
            return(-1);
        }
Beispiel #4
0
 public static string Mostrar(Tempera a)
 {
     return(a.Mostrar());
 }