private void Plugin_Startup(object sender, System.EventArgs e) { Logging.PowerFolderLogProfile.initLogProfile(); OutlookApplication = this.Application as Outlook.Application; OutlookInspectors = OutlookApplication.Inspectors; OutlookInspectors.NewInspector += new Microsoft.Office.Interop.Outlook.InspectorsEvents_NewInspectorEventHandler(OutlookInspectors_NewInspector); OutlookApplication.ItemSend += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemSendEventHandler(OutlookApplication_ItemSend); Mail.OutboxDirectoryManager.Get(OutlookApplication).SendEmails(); Update.Updater updater = new Update.Updater(); updater.CheckForUpdate(); }
private void update_btn_Click(object sender, RibbonControlEventArgs e) { Update.Updater updater = new Update.Updater(true); updater.CheckForUpdate(true); }