SIL.FieldWorks.FieldWorks.ComplainToUserAboutNewWs C# (CSharp) Метод

ComplainToUserAboutNewWs() приватный Метод

private ComplainToUserAboutNewWs ( string wsLabel, string projectName ) : bool
wsLabel string
projectName string
Результат bool
		private static bool ComplainToUserAboutNewWs(string wsLabel, string projectName)
		{
			// Assume they want the WS updated when we're not supposed to show a UI.
			if (s_noUserInterface)
				return true;

			string text = string.Format(Properties.Resources.kstidGlobalWsChangedMsg, wsLabel, projectName);
			string caption = Properties.Resources.kstidGlobalWsChangedCaption;
			Form owner = s_splashScreen != null ? s_splashScreen.Form : Form.ActiveForm;

			return ThreadHelper.ShowMessageBox(owner, text, caption, MessageBoxButtons.YesNo,
				MessageBoxIcon.Question) == DialogResult.Yes;
		}
FieldWorks