Exemple #1
0
 public static void CheckOutForUpdate()
 {
     if (OnLineInfoIstance == null)
     {
         OnLineInfoIstance = new OnlineInfo();
     }
     //call the parse methode to fill the object of online info
     OnLineInfoIstance.ParseInfo();
 }
        private void URGetOnlineInfoCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            this.OnLineInfo = OnlineInfo.GetInstance();
            if ((this.OnLineInfo.Plugins.Count != 0) || (this.OnLineInfo.Updates.Count != 0))
            {
                //add updates to the list
                foreach (Update u in this.OnLineInfo.Updates)
                {
                    ListViewItem item = new ListViewItem(new string[] { "Update", u.Name, u.Link });
                    item.Tag = u.TargetLocation;
                    PluginListView.Items.Add(item);
                }
                //add plugin to listview
                foreach (Plugin p in this.OnLineInfo.Plugins)
                {
                    string localfile = Path.GetDirectoryName(Application.ExecutablePath) + AppSettings.GetFolder("pluginsfolder") + Path.GetFileName(p.Link);
                    if (!new FileInfo(localfile).Exists)
                    {
                        ListViewItem item = new ListViewItem(new string[] { "Plugin", p.Name, p.Link });
                        item.Tag = p.Description;
                        PluginListView.Items.Add(item);
                    }

                }
            }
            PluginDescription.Text = "";
            DownloadProgress.Style = ProgressBarStyle.Blocks;
        }
Exemple #3
0
 public static void CheckOutForUpdate()
 {
     if (OnLineInfoIstance==null)
     {
         OnLineInfoIstance = new OnlineInfo();
     }
     //call the parse methode to fill the object of online info
     OnLineInfoIstance.ParseInfo();
 }