[Filescope-devel] Patch Commited: Allow user to exit the setup wizard.
Brought to you by:
mzyzik
From: Shervin <She...@sh...> - 2005-02-18 07:07:18
|
This patch allows the user to quit the setup wizard. This wizard is only shown if this is the first time that user is starting FileScope. With this patch, FileScope simply asks the user if they want to quit or not when they click on the X at the top right corner of the wizard dialog, and if they say yes, it will exit the application. This patch has been committed into CVS. Shervin cvs diff WizardDlg.cs (in directory D:\CVS\filescope\SWF-UI\Dialogs\) Index: WizardDlg.cs =================================================================== RCS file: /cvsroot/filescope/filescope/SWF-UI/Dialogs/WizardDlg.cs,v retrieving revision 1.1.1.1 diff -r1.1.1.1 WizardDlg.cs 69a70,71 > private bool bWizardEnded = false; > 814c816 < closingTime = true; --- > bWizardEnded = true; 818,819d819 < bool closingTime = false; < 822,824c822,830 < //can't close the wizard < if(!closingTime) < e.Cancel = true; --- > // Exit only if the wizard has ended. Otherwise ask the user. > if(!bWizardEnded) > { > // Ask the user if they want to exit and only exit if they said yes. > if (MessageBox.Show("Are you sure you want to quit the setup wizard?", "Quit", MessageBoxButtons.YesNo) == DialogResult.Yes) > Application.Exit(); > else > e.Cancel = true; > } |