Example #1
0
        private void PackageSelect(object sender, TreeViewEventArgs e)
        {
            String pack = e.Node.Text;

            toolStripComboBox1.Items[0]      = pack;
            toolStripComboBox1.SelectedIndex = 0;

            String fullpath = Path.Combine(GlobalRegistry.Instance.Path, pack);
            String manifest = Path.Combine(fullpath, "package.xml");

            if (File.Exists(manifest))
            {
                XmlValidator xv      = new XmlValidator();
                Package      package = xv.ValidateObject <Package>(manifest);

                m_CancelNav = false;
                if (package != null)
                {
                    cBrowserDesc.DocumentText = package.Languages[0].Description;
                }
                else
                {
                    cBrowserDesc.DocumentText = "Unable to load package info.";
                }
            }
        }
Example #2
0
        private void PackageSelect(object sender, TreeViewEventArgs e)
        {
            String pack = e.Node.Text;
            toolStripComboBox1.Items[0] = pack;
            toolStripComboBox1.SelectedIndex = 0;

            String fullpath = Path.Combine(GlobalRegistry.Instance.Path, pack);
            String manifest = Path.Combine(fullpath, "package.xml");
            if (File.Exists(manifest))
            {
                XmlValidator xv = new XmlValidator();
                Package package = xv.ValidateObject<Package>(manifest);

                m_CancelNav = false;
                if (package != null)
                {
                    cBrowserDesc.DocumentText = package.Languages[0].Description;
                }
                else
                {
                    cBrowserDesc.DocumentText = "Unable to load package info.";
                }
            }
        }