I have, the following question:
I have a WindowsForm with ProgressBar progressBar1 and Button button1.
After onClick event on button the following method executes:
button_Click(object sender, EventArgs e)
{
DatabaseOperations.ClearDatabase();
}
where ClearDatabase() is static method which should increment my
progress bar. How can I increment my progress bar without giving
ProgressBar object as parameter( I mean without using
ClearDatabase(progressBar1); - it doesn't seem to be a good way)
Thanks for any reply.