private void ButtonApply_Click(object sender, EventArgs e) { if (HasErrors()) { return; } Working(true, true); //Set controls depending on the state of action. WorkerSave.RunWorkerAsync(); }