private void defferedLoader() { lock (instanceLock) { isLoaded = true; addIn = this; Calendars = getCalendars(); this.Settings = new SettingsManager(Application); this.SyncManager = new SyncManager(Settings); } }
private void ThisAddIn_Startup(object sender, System.EventArgs e) { lock (instanceLock) { addIn = this; } }