Declare variables to track changes.
In order to remind the user to save, we use a Boolean variable changed
Declare variables to track changes.
In order to remind the user to save, we use a Boolean variable changed
We want to be able to remind the user to save so we will declare the variables changed and currentFilename.
Write the code to declare the variables:
public partial class Form1 : Form
{
String currentFileName = "Untitled";
Boolean changed = false;
public Form1()
{
InitializeComponent();
}
...
Click Save All at this point and run the program to see what we have so far.