private void button1_Click(object sender, EventArgs e) { database.WorkPerformed += new EventHandler <Database.WorkPerformedEventArgs>(worker_WorkPerformed); database.AddNewProduct(); }