예제 #1
0
        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.AppendLine("Stan: " + Stan.ToString());
            builder.AppendLine("AmountTran: " + AmountTran.ToString());
            builder.AppendLine("AmtTranFee: " + AmtTranFee.ToString());
            builder.AppendLine("AmountCash: " + AmountCash.ToString());

            return(builder.ToString());
        }
        public override string ToString()
        {
            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine();

            string text = "Automaty sprzedające SA \n" + "Zapas " + liczba + "\n" + "Stan automatu ... " + stan.ToString() + "\n";

            return(text);
        }