Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
    public void OnHelpSelection()
    {
        HelpItem hi = (HelpItem)CtxPopup.current.selectedItem;

        Debug.Log("ButtonHandler.OnHelpSelection() " + hi.ToString());
    }