XCore.XMessageBoxExManager.Trigger C# (CSharp) Method

Trigger() static public method

static public Trigger ( string triggerName ) : string
triggerName string
return string
		static public string Trigger(string triggerName)
		{
			// Don't dispose the msgbox here - we store it and re-use it. Will be disposed in our Dispose() method.
			var msgBox = MessageBoxExManager.GetMessageBox(triggerName);
			if(msgBox==null)
			{
				throw new ApplicationException ("Could not find the message box with trigger name = "+triggerName);
			}
			return msgBox.Show();
		}