/* Based on the valid flag, prints a point
  * on the chart dieVisualizer corresponding
  * to the current die's center point.
  */
 private void showValidDie(Die d)
 {
     if (d.getValid())
     {
         dieVisualizer.Series[0].Points.AddXY(d.getCenter().x, d.getCenter().y);
     }
 }
 /* Based on the valid flag, highlight the
  * point passed in to show that that point
  * is going to be inspected, and add the
  * coordinates of the point to the text box.
  */
 private void showInspectedDie(Die d)
 {
     if (d.getValid())
     {
         dieVisualizer.Series[1].Points.AddXY(d.getCenter().x, d.getCenter().y);
         string text = coordBox.Text;
         text         += "[" + d.getCenter().x.ToString() + "," + d.getCenter().y.ToString() + "]";
         coordBox.Text = text;
     }
 }
Ejemplo n.º 3
0
 /* Based on the valid flag, highlight the
  * point passed in to show that that point
  * is going to be inspected, and add the
  * coordinates of the point to the text box.
  */
 private void showInspectedDie(Die d)
 {
     if (d.getValid())
     {
         dieVisualizer.Series[1].Points.AddXY(d.getCenter().x, d.getCenter().y);
         //string text = coordBox.Text;
         text.Add("X" + d.getCenter().x.ToString() + " " + "Y" + d.getCenter().y.ToString() + "\n");
         coordBox.Text += text.Last();
     }
 }