/// <summary> /// Cleanup /// </summary> /// <param name="custom"></param> public void OnBeginShutdown(ref Array custom) { this.mainForm?.Invoke(new Action(() => { // close the form on the forms thread this.mainForm?.Close(); this.mainForm = null; })); }
private void ShowForm() { this.mainForm = new MainForm(this.OneNoteApplication); System.Windows.Forms.Application.Run(this.mainForm); }