Exemple #1
0
        public Tile Clone()
        {
            Tile newTile = new Tile();

            newTile.Boundary     = Boundary.Clone();
            newTile.Drawn        = Drawn.Clone();
            newTile.VertexCircle = VertexCircle.Clone();
            newTile.Geometry     = Geometry;
            return(newTile);
        }
Exemple #2
0
        public override string ToString()
        {
            var final = new StringBuilder();

            final.Append($"{Name.PadRight(30)} | ");
            final.Append($"{Played.ToString().PadLeft(2)} | ");
            final.Append($"{Won.ToString().PadLeft(2)} | ");
            final.Append($"{Drawn.ToString().PadLeft(2)} | ");
            final.Append($"{Lost.ToString().PadLeft(2)} | ");
            final.Append($"{Point.ToString().PadLeft(2)}");

            return(final.ToString());
        }
Exemple #3
0
 public string[] getinfo()
 {
     string[] info = new string[9];
     info[0] = TeamName;
     info[1] = Played.ToString();
     info[2] = Won.ToString();
     info[3] = Drawn.ToString();
     info[4] = Lost.ToString();
     info[5] = GF.ToString();
     info[6] = GA.ToString();
     info[7] = GD.ToString();
     info[8] = Points.ToString();
     return(info);
 }
Exemple #4
0
        public void Draw(List <Vector3> points)
        {
            this.lineRenderer.positionCount = points.Count;
            this.lineRenderer.SetPositions(points.ToArray());

            if (points.Count < 2)
            {
                this.arrow.color = new Color(0, 0, 0, 0);
                return;
            }

            this.arrow.transform.position = points.Last();
            this.arrow.transform.rotation = QuaternionUtility.LookRotation2D(
                points[points.Count - 1] - points[points.Count - 2]);

            Drawn?.Invoke(points);
            AnyPathDrawn?.Invoke(points);
        }
 private void BtnCheckResult_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(dataSort))
     {
         if (numeros != null)
         {
             bet.drawns = new List <Drawn>();
             Drawn drawn = new Drawn
             {
                 date    = DateTime.Today.Date.ToString(),
                 numbers = string.Join(" ", numeros.ToArray()),
                 stars   = string.Join(" ", estrelas.ToArray())
             };
             bet.drawns.Add(drawn);
         }
         new GetResults(this, bet).Execute(Common.Common.APIRequest(DateTime.Parse(dataSort)));
     }
 }
Exemple #6
0
 public virtual void OnDraw(EventArgs e)
 {
     Drawn?.Invoke(this, e);
 }
Exemple #7
0
 public void Transform(Isometry i)
 {
     Boundary.Transform(i);
     Drawn.Transform(i);
     VertexCircle.Transform(i);
 }
Exemple #8
0
 /// <summary>
 /// Apply a Mobius transform to us.
 /// </summary>
 public void Transform(Mobius m)
 {
     Boundary.Transform(m);
     Drawn.Transform(m);
     VertexCircle.Transform(m);
 }
Exemple #9
0
 public void Reflect(Segment s)
 {
     Boundary.Reflect(s);
     Drawn.Reflect(s);
     VertexCircle.Reflect(s);
 }