public void Done() { Addon.SetShortcuts(true); if (!Canceled && this.Form != null) { this.done = true; try { this.Form.Invoke(new Action(delegate { this.Form.Close(); })); } catch { } } }