public void Set(int currentLocation) { if (!Canceled && this.Form != null) { try { this.Form.Invoke(new Action(delegate { this.updateStatus(currentLocation); })); } catch { } } }