Example #1
0
        void updater_UpdatePercentageRefreshed(object sender, UpdatePercentageRefreshedEventArgs e)
        {
            Action a = () => prgUpdate.Value = (int)(100 * e.Percentage);

            if (prgUpdate.InvokeRequired)
                prgUpdate.Invoke(a);
            else
                a();
        }
Example #2
0
        void updater_UpdatePercentageRefreshed(object sender, UpdatePercentageRefreshedEventArgs e)
        {
            Action a = () => prgUpdate.Value = (int)(100 * e.Percentage);

            if (prgUpdate.InvokeRequired)
            {
                prgUpdate.Invoke(a);
            }
            else
            {
                a();
            }
        }