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