{ public static void Main() { System.Console.WriteLine("The Archimedean spiral program has begun."); Spiralframe archimedes = new Spiralframe(); Application.Run(archimedes); System.Console.WriteLine("This Archimedean spiral program has ended. Bye."); }
}//End of constructor //Create event handling functions. protected void submission(Object sender, EventArgs events) { uint wide; try { wide = uint.Parse(horizontal_width.Text); if (wide < min_horizontal_width_allowed) { wide = min_horizontal_width_allowed; } else if (wide > max_horizontal_width_allowed) { wide = max_horizontal_width_allowed; } } catch { wide = min_horizontal_width_allowed; } SetVisibleCore(false); archimedes_window = new Spiralframe(wide); Application.Run(archimedes_window); }//End of function submission