Private
Public Access
Removed pointless Console.WriteLine() calls
This commit is contained in:
1 parent
c5fbc13f06
commit
2636ca2027
2 files changed
+1
-4
No files matched your search
@@ -178,7 +178,7 @@ namespace Advanced_Software_Engineering {
|
|||||||
double dx = scale * Math.Sin(angle);
|
double dx = scale * Math.Sin(angle);
|
||||||
double dy = scale * Math.Cos(angle);
|
double dy = scale * Math.Cos(angle);
|
||||||
|
|
||||||
points.Add(new Point((int) Math.Round(dx), (int) Math.Round(dy));
|
points.Add(new Point((int)Math.Round(dx), (int)Math.Round(dy)));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sides = sides;
|
this.sides = sides;
|
||||||
|
|||||||
@@ -16,8 +16,6 @@ namespace Advanced_Software_Engineering
|
|||||||
Graphics graphics;
|
Graphics graphics;
|
||||||
Commander commander;
|
Commander commander;
|
||||||
|
|
||||||
int repaintCount = 0;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The draw preview window.
|
/// The draw preview window.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -59,7 +57,6 @@ namespace Advanced_Software_Engineering
|
|||||||
{
|
{
|
||||||
graphics = panel1.CreateGraphics();
|
graphics = panel1.CreateGraphics();
|
||||||
commander.DrawAllCommands(graphics);
|
commander.DrawAllCommands(graphics);
|
||||||
Console.WriteLine("Graphics repainted " + ++repaintCount + "times");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SubmitCommand(object sender, EventArgs e)
|
private void SubmitCommand(object sender, EventArgs e)
|
||||||
|
|||||||
Reference in new issue
Block a user