public static string Mostrar(Tempera t) { string retorno = ""; if (t != null) { retorno = t.Mostrar(); } return(retorno); }
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); }
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); }
public static string Mostrar(Tempera a) { return(a.Mostrar()); }