/// <summary> /// Gets the data for the given property. If the property was not set, /// String.Empty is returned. /// </summary> /// <param name="propertyName">Name of the property to query.</param> /// <returns>The value of the property, or String.Empty if not available.</returns> public String GetPropertyValue(String propertyName) { if (PropVals.ContainsKey(propertyName)) { return(PropVals[propertyName]); } return(String.Empty); }
/// <summary> /// Checks to see if this dialog is for the given app, /// by checking the Command property on this dialog. /// </summary> /// <param name="appName">Name of the app that is being checked for.</param> /// <returns>True if the Command property matches the given app name.</returns> public bool CheckForApp(String appName) { return(PropVals.ContainsKey("Command") && PropVals["Command"].Equals(appName)); }