示例#1
0
        private string Mostrar()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Pluma: " + this._pluma);
            if (this._tinta is null)
            {
                sb.AppendLine("Tinta: Datos no Ingresados");
            }
            else
            {
                sb.AppendLine(Tinta.Mostrar(this._tinta));
            }
            sb.AppendLine("Cantidad: " + this._cantidad);

            return(sb.ToString());
        }
示例#2
0
 private string Mostrar()
 {
     return(this.cantidad + " - " + this.marca + " - " + Tinta.Mostrar(this.tinta));
 }
示例#3
0
 public static string Mostrar(Tinta algo)
 {
     return(algo.Mostrar());
 }
示例#4
0
 public static string Mostrar(Tinta tinta)
 {
     //return tinta._color + "-" + tinta._tipoTinta;
     return(tinta.Mostrar());
 }
示例#5
0
 public static string Mostrar(Tinta tipo)
 {
     return(tipo.Mostrar());
 }
示例#6
0
 private string Mostrar()
 {
     return(this.marca.ToString() + "." + Tinta.Mostrar(this.tinta) + "." + this.cantidad.ToString()); //tengo que mostrar todas las tintas
 }
示例#7
0
 private string Mostrar()
 {
     return("Marca: " + this._Marca + ", " + Tinta.Mostrar(this._Tinta));
 }
示例#8
0
 public static string Mostrar(Tinta tipoTinta)// NO USAR THIS EN METODOS ESTATICOS
 {
     return(tipoTinta.Mostrar());
 }
示例#9
0
 //Se hace un funcion publica porque desde el main no se puede llamar
 //Asi que se llama a la privada desde la publica
 public static string Mostrar(Tinta objeto)
 {
     return(objeto.Mostrar());
 }
示例#10
0
 private string Mostrar()
 {
     return(this._marca + "-" + "- " + Tinta.Mostrar(this._tinta) + "-" + "-" + this._cantidad);
 }
 public static string Mostrar(Tinta unaTinta)
 {
     return(unaTinta.Mostrar());
 }
示例#12
0
        public static string Mostrar(Tinta tipo)
        {
            string s = tipo.Mostrar();

            return(s);
        }