Exemple #1
0
        private bool LoadPluginData()
        {
            string url = string.Format("{0}/{1}/{2}", SVNManager.PLUGINS_URL, this.Product.Name, this.VersionNumber);
            Dictionary <string, string> pluginId = SVNManager.Instance.List(url);

            string[] urls = new string[pluginId.Values.Count];

            pluginId.Values.CopyTo(urls, 0);

            if (pluginId.Count > 0)
            {
                string path = SVNManager.Instance.Download(string.Format("{0}/plugin.data", urls[0]));

                if (System.IO.File.Exists(path))
                {
                    this._pluginData = PluginData.Load(this, path);
                    System.IO.File.Delete(path);
                    this._pluginData.Path   = string.Empty;
                    this._pluginData.Url    = string.Empty;
                    this._pluginData.Parent = this;
                    return(true);
                }
            }

            return(false);
        }
Exemple #2
0
        private bool LoadPluginData()
        {
            Dictionary <string, string> pluginId = SVNManager.Instance.List(this.Url);

            string[] url = new string[pluginId.Values.Count];

            pluginId.Values.CopyTo(url, 0);

            if (pluginId.Count > 0)
            {
                string path = SVNManager.Instance.Download(string.Format("{0}/plugin.data", url[0]));

                if (System.IO.File.Exists(path))
                {
                    this._pluginData = PluginData.Load(this, path);
                    System.IO.File.Delete(path);
                    return(true);
                }
            }

            return(false);
        }