Exemple #1
0
        void _core_StatusChanged(object sender, StatusChangedEventArgs e)
        {
            try
            {
                this.Invoke(new Action<StatusChangedEventArgs>(ev =>
                {
                    /*if (ev.StatusText == "Downloading")
                    {
                        this.Visible = true;
                        this.Show();
                    }*/

                    this.label1.Text = string.Format("{0} {1}%", ev.DetailedStatus, ev.ExactPercentage);
                    this.progressBar1.Minimum = 0;
                    this.progressBar1.Maximum = (int)ev.TotalTasks;
                    this.progressBar1.Value = (int)ev.TasksDone;
                }), e);
            }
            catch { }
        }
Exemple #2
0
        static void _core_StatusChanged(object sender, StatusChangedEventArgs e)
        {
            if (e.StatusText != "Downloading")
            {
                return;
            }

            if (!Completed)
            {
                openUpdater = true;
                Completed = true;
            }
        }