Exemplo n.º 1
0
        /// <summary>Gets hold of the selected tag and figures out the approximate file name.</summary>
        private static void LoadSelected()
        {
            // Get the tag name:
            string  name = Tags[SelectedTagIndex];
            Element inst = Instances[SelectedTagIndex];

            // Get the actual handler:
            AllTags.TryGetValue(name, out SelectedTag);

            if (SelectedTag == null)
            {
                TagName      = "";
                TagNamespace = "";
                return;
            }

            string[] pieces = name.Split(':');

            TagNamespace = pieces[0];
            TagName      = pieces[1];
            NonStandard  = inst.NonStandard;
        }