SIL.FieldWorks.XWorks.FwXWindow.ShowStylesDialog C# (CSharp) Method

ShowStylesDialog() public method

Required interface member to launch the style dialog.
public ShowStylesDialog ( string paraStyleName, string charStyleName, Action setPropsToFactorySettings ) : bool
paraStyleName string Name of the initially selected paragraph style.
charStyleName string Name of the initially selected character style.
setPropsToFactorySettings Action Delegate to set style info properties back /// to the default facotry settings
return bool
		public bool ShowStylesDialog(string paraStyleName, string charStyleName,
			Action<StyleInfo> setPropsToFactorySettings)
		{
			CheckDisposed();

			if (m_delegate.ShowStylesDialog(paraStyleName, charStyleName, setPropsToFactorySettings))
			{
				// Need to refresh to reload the cache.  See LT-6265.
				(m_app as FwXApp).OnMasterRefresh(null);
			}
			return false;	// refresh already called if needed
		}
FwXWindow