Lets take two buttons cmdSave and cmdStart (for the Save and Start buttons).
I would have a class level boolean flag (lets call it flag).
On the cmdSave click method, I would set this flag to
true
.
public void OncmdSaveClick(object sender, EventArgs e)
{
flag = true;
}
Whenever the cmdStart button is clicked I would check for this flag. Only if this flag is set (the Save button had been clicked earlier, I would run the form). If not, I would just step out of the method.
public void OncmdStartClick(object sender, EventArgs e)
{
if (flag)
{
CallNewForm();
}
}
This way, you will be sure the Save button has been clicked at least once.