I want to know whats missing in my code...i couldnt draw a multiple boxes
Console.Title = "Checkboard Draw";
Console.WriteLine("{0, 40}", "Checkboard Draw");
CDrawer Canvas = new CDrawer(800, 600);
int irange = 0;
bool bError;
do
{
try
{
bError = false;
Console.Write("\nEnter the size of the square: ");
irange = int.Parse(Console.ReadLine());
if ((irange < 10) || (irange > 200))
{
Console.Write("\nThe value entered is out of range.");
continue;
}
}
catch (FormatException)
{
Console.Write("An incorrect character was entered.");
continue;
}
finally
{
Console.WriteLine("");
bError = true;
}
Canvas.Scale = irange;
for (int idraw = 0; idraw < 800; ++idraw)
Canvas.AddRectangle(idraw, idraw, 10,10,Color.Red);
bError = false;
}
while (bError);
Console.ReadLine();
}
}
}