예제 #1
0
        public override void PrintDescriptionFigure()
        {
            string message = String.Empty;

            message += $"Type: {this.TypeFigure}\n";
            message += $"Area: {this.Area.ToString("0.##")}\n";
            message += $"Perimetr: {this.Perimetr.ToString("0.##")}\n";
            if (Radius1 != Radius2)
            {
                message += $"Radius1: {Radius1.ToString("0.##")}\n";
                message += $"Radius2: {Radius2.ToString("0.##")}\n";
            }
            else
            {
                message += $"Radius: {Radius1.ToString("0.##")}\n";
            }
            message += $"Centre Point: {Points[0].ToString()}\n";
            display.Print(message);
        }
예제 #2
0
 public override void Display()
 {
     base.Display();
     Console.WriteLine("Radius1 = " + Radius1.ToString(CultureInfo.CurrentCulture) + " Radius2 = " + Radius2.ToString(CultureInfo.CurrentCulture));
 }