SIL.FieldWorks.Common.Framework.FwApp.ShowFirstTimeMessageDlg C# (CSharp) Méthode

ShowFirstTimeMessageDlg() public méthode

Displays a message box asking the user whether or not he wants to open a sample DB.
public ShowFirstTimeMessageDlg ( string suggestedProject ) : string
suggestedProject string
Résultat string
		public virtual string ShowFirstTimeMessageDlg(string suggestedProject)
		{
			string sCaption = ResourceHelper.GetResourceString("kstidTrainingAvailable");
			string sMsg = GetResourceString("kstidOpenSampleDbMsg");
			if(MessageBox.Show(sMsg, sCaption, MessageBoxButtons.YesNo,
				MessageBoxIcon.Question, MessageBoxDefaultButton.Button1,
				MessageBoxOptions.DefaultDesktopOnly) == DialogResult.Yes)
			{
				return suggestedProject;
			}
			return String.Empty;
		}