Homework 4: C# Application
The goal of this homework is to
gain experience in developing user interfaces using the C# programming language.
The basic principles learned here in C# will carry over to many other GUI
programming languages.
Develop a simple drawing application that enables users to
draw pictures using the mouse.
User required features are:
- drawing straight line segments using a line tool. Click-and-drag on the
drawing canvas to draw a straight line segment between the click point and the
release point. For full credit, the line should cleanly visibly stretch
like a rubber band as you drag before you release.
- controlling the color of the line tool; multiple
colors can be used in a single picture.
- controlling the width of the line tool with a slider; multiple line widths
can be used in a single picture.
- unlimited "undo" of lines.
- selective deletion of lines. Clicking on/near an endpoint of a line
deletes it. If near multiple lines, delete any 1. (This is the hard one, save for last).
- clearing the canvas.
- show an "About" popup dialog box that displays your name.
Also, the application window containing the drawing canvas must:
- be resizable (with the canvas resizing to fill the available window
space).
- not lose the current drawn picture when the window is resized or
manipulated in any way.
Submission procedure: (CHANGED!)
Post your submissions to the instructor using the Blackboard system at
learn.vt.edu. Use the TOOLS > DIGITAL DROP BOX feature to send a zip file
to us that is named <yourPID>.zip and contains:
- your compiled draw.exe file
- your application project directory and files,
including your *.cs files.