ToString() public method

public ToString ( ) : string
return string
Ejemplo n.º 1
0
 public void TestToString()
 {
     PlayerLongoMatch player = new PlayerLongoMatch { Name = "andoni", LastName = "morales", Number = 1 };
     Assert.AreEqual ("1-andoni morales", player.ToString ());
     player.NickName = "ylatuya";
     Assert.AreEqual ("1-ylatuya", player.ToString ());
 }
Ejemplo n.º 2
0
        public static void RenderPlayer(PlayerLongoMatch player, int count, bool isExpanded, IDrawingToolkit tk,
		                                 IContext context, Area backgroundArea, Area cellArea)
        {
            Point image, text;
            double textWidth;

            image = new Point (StyleConf.ListTextOffset, cellArea.Start.Y);
            text = new Point (image.X + StyleConf.ListRowSeparator + StyleConf.ListImageWidth,
                cellArea.Start.Y);
            textWidth = cellArea.Start.X + cellArea.Width - text.X;

            tk.Context = context;
            tk.Begin ();
            RenderBackgroundAndText (isExpanded, tk, backgroundArea, text, textWidth, player.ToString ());
            /* Photo */
            RenderPlayer (tk, player, image);
            RenderCount (isExpanded, player.Color, count, tk, backgroundArea, cellArea);
            RenderSeparationLine (tk, context, backgroundArea);
            tk.End ();
        }