public MyCustomPage()
 {
     _helpTopic = new HelpTopic(null, "This is the custom QuickHelp for My Custom Page");
     IsAllowed = true;
     IsRequired = true;
     InitializeComponent();
 }
Example #2
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////

        private static void _LoadTopic(string path, XmlNode nodeTopic, Dictionary <string, HelpTopic> topics)
        {
            string name      = nodeTopic.Attributes[ATTRIBUTE_NAME_NAME].Value;
            string key       = nodeTopic.Attributes[ATTRIBUTE_NAME_KEY].Value;
            string quickHelp = null;

            foreach (XmlNode node in nodeTopic.ChildNodes)
            {
                if (node.NodeType != XmlNodeType.Element)
                {
                    continue; // skip comments and other non element nodes
                }
                if (node.Name.Equals(NODE_NAME_QUICKHELP, StringComparison.OrdinalIgnoreCase))
                {
                    if (null != node.FirstChild)
                    {
                        quickHelp = node.FirstChild.Value;
                    }
                    break;
                }
            }

            if (!string.IsNullOrEmpty(name) &&
                (!string.IsNullOrEmpty(path) || !string.IsNullOrEmpty(key) || !string.IsNullOrEmpty(quickHelp)))
            {
                HelpTopic topic = new HelpTopic(path, key, quickHelp);
                topics.Add(name, topic);
            }
        }
        public SendRoutesPage()
        {
            _helpTopic = new HelpTopic(null, Properties.Resources.SendRoutesPageQuickHelp);

            InitializeComponent();
            IsRequired = true;
            IsAllowed = true;
            this.Loaded += new RoutedEventHandler(SendRoutesPage_Loaded);
        }
Example #4
0
        /// <summary>
        /// Quick help string
        /// </summary>
        /// <remarks>Can be null</remarks>
        public HelpTopic GetTopic(string name)
        {
            HelpTopic topic = null;

            if ((null != _topics) && (_topics.ContainsKey(name)))
            {
                topic = _topics[name];
            }

            return(topic);
        }
Example #5
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        private static void _LoadTopic(string path, XmlNode nodeTopic, Dictionary<string, HelpTopic> topics)
        {
            string name = nodeTopic.Attributes[ATTRIBUTE_NAME_NAME].Value;
            string key = nodeTopic.Attributes[ATTRIBUTE_NAME_KEY].Value;
            string quickHelp = null;
            foreach (XmlNode node in nodeTopic.ChildNodes)
            {
                if (node.NodeType != XmlNodeType.Element)
                    continue; // skip comments and other non element nodes

                if (node.Name.Equals(NODE_NAME_QUICKHELP, StringComparison.OrdinalIgnoreCase))
                {
                    if (null != node.FirstChild)
                        quickHelp = node.FirstChild.Value;
                    break;
                }
            }

            if (!string.IsNullOrEmpty(name) &&
                (!string.IsNullOrEmpty(path) || !string.IsNullOrEmpty(key) || !string.IsNullOrEmpty(quickHelp)))
            {
                HelpTopic topic = new HelpTopic(path, key, quickHelp);
                topics.Add(name, topic);
            }
        }
 public DistributeOrdersPage()
 {
     _helpTopic = new HelpTopic(null, QUICK_HELP);
     IsAllowed = true;
     InitializeComponent();
 }