public static void Show(IWin32Window owner, HelpItem helpItem) { var stream = typeof(HelpPopup).GetManifestResourceStream(helpItem.ToString() + ".rtf"); if (stream == null) { return; //should never happen } using (var dlg = new HelpPopup()) { using (var sr = new StreamReader(stream)) dlg.m_rtfHelp.Rtf = sr.ReadToEnd(); dlg.ShowDialog(owner); } }
public void OnHelpSelection() { HelpItem hi = (HelpItem)CtxPopup.current.selectedItem; Debug.Log("ButtonHandler.OnHelpSelection() " + hi.ToString()); }