namespace BulkArchiveMailer.AddIn { /// /// Designer-generated half of ThisAddIn. Normally Visual Studio's VSTO /// project system regenerates this file automatically from /// ThisAddIn.Designer.xml the first time the project is opened/edited /// in the IDE (host-item "blueprint" mechanism) - it is hand-written /// here only because this environment had no VSTO tooling to run that /// generator, and later corrected to match the real base class after /// the first build against the actual VSTO assemblies (see git log). /// /// The real base class is NOT the Microsoft.Office.Tools.Outlook.OutlookAddIn /// interface (that only declares the FormRegion-related members) but /// Microsoft.Office.Tools.Outlook.OutlookAddInBase - a concrete /// abstract class living in Microsoft.Office.Tools.Outlook.v4.0.Utilities.dll /// (referenced with SpecificVersion=False/Private=True in the .csproj, /// same as the built-in "Outlook VSTO Add-in" project template), which /// itself derives from Microsoft.Office.Tools.AddInBase and already /// implements OutlookAddIn/AddIn/IBindableComponent/IComponent/ /// IDisposable, plus exposes the protected virtual /// CreateRibbonExtensibilityObject() overridden in ThisAddIn.cs. /// /// Do not hand-edit once opened in VS if the IDE regenerates it /// differently. /// [Microsoft.VisualStudio.Tools.Applications.Runtime.StartupObjectAttribute(0)] [global::System.Security.Permissions.PermissionSetAttribute(global::System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] public sealed partial class ThisAddIn : Microsoft.Office.Tools.Outlook.OutlookAddInBase { /// Populated from the host item in ; exposed to the rest of the add-in via the OutlookApplication alias in ThisAddIn.cs. internal Microsoft.Office.Interop.Outlook.Application Application; /// /// Required constructor for VSTO add-in support - do not modify /// the contents of this method with the code editor. The VSTO /// runtime instantiates ThisAddIn through this constructor via /// reflection (see the StartupObjectAttribute above). /// public ThisAddIn(Microsoft.Office.Tools.Outlook.Factory factory, System.IServiceProvider serviceProvider) : base(factory, serviceProvider, "AddIn", "ThisAddIn") { Globals.Factory = factory; } /// /// Required method for Designer support - do not modify the /// contents of this method with the code editor. /// protected override void Initialize() { base.Initialize(); this.Application = this.GetHostItem( typeof(Microsoft.Office.Interop.Outlook.Application), "Application"); Globals.ThisAddIn = this; global::System.Windows.Forms.Application.EnableVisualStyles(); } /// /// Required method for Designer support - do not modify the /// contents of this method with the code editor. /// protected override void FinishInitialization() { this.InternalStartup(); this.OnStartup(); } } }