private void chbFishing_CheckedChanged(object sender, EventArgs e) { Fishing.Enabled = chbFishing.Checked; if (Fishing.Enabled) { if (Fishing.FishingPosition.IsEmpty) { chbFishing.Checked = false; MessageBox.Show("Fishing position is not set!", "Error"); return; } Task.Run(() => Fishing.StartFishing()); } }