protected override void Dispose(bool isDisposing) { if (isDisposing) { // Release the icon resource. this.trayicon.Dispose(); } base.Dispose(isDisposing); }
/// <summary> /// Run the CmisSync user interface. /// </summary> public void Run () { try { Application.Run (StatusIcon = new StatusIcon ()); } finally { StatusIcon.Dispose (); } }