public PostForm(EwsEditorAppSettings oCurrentAppSettings) { InitializeComponent(); _CurrentAppSettings = oCurrentAppSettings; if (_CurrentAppSettings != null) { _XAnchorMailboxDefault = _CurrentAppSettings.MailboxBeingAccessed; } }
public static void SetAppSettingsFromProxyFactory(ref EWSEditor.Common.EwsEditorAppSettings oSettings) { oSettings.MailboxBeingAccessed = MailboxBeingAccessed; oSettings.AccountAccessingMailbox = AccountAccessingMailbox; if (EwsUrl != null) { oSettings.UrlHost = EwsUrl.Host; } else { oSettings.UrlHost = ""; } oSettings.AuthenticationMethod = AuthenticationMethod; // Default, UserSpecified, oAuth oSettings.UseAutoDiscover = (bool)UseAutoDiscover; oSettings.RequestedAutodiscoverEmail = RequestedAutodiscoverEmail; oSettings.RequestedExchangeServiceURL = RequestedExchangeServiceURL; oSettings.RequestedExchangeVersion = RequestedExchangeVersion; oSettings.UserName = UserName; oSettings.Password = Password; oSettings.Domain = Domain; oSettings.UserImpersonationSelected = (bool)UserImpersonationSelected; oSettings.UserToImpersonate = UserToImpersonate; oSettings.ImpersonationType = ImpersonationType; oSettings.ImpersonatedId = ImpersonatedId; oSettings.UseoAuth = UseoAuth; oSettings.oAuthRedirectUrl = oAuthRedirectUrl; oSettings.oAuthClientId = oAuthClientId; oSettings.oAuthServerName = oAuthServerName; oSettings.oAuthAuthority = oAuthAuthority; oSettings.oBearerToken = oBearerToken; oSettings.EnableAdditionalHeader1 = EnableAdditionalHeader1; oSettings.AdditionalHeader1 = AdditionalHeader1; oSettings.AdditionalHeaderValue1 = AdditionalHeaderValue1; oSettings.EnableAdditionalHeader2 = EnableAdditionalHeader2; oSettings.AdditionalHeader2 = AdditionalHeader2; oSettings.AdditionalHeaderValue2 = AdditionalHeaderValue2; oSettings.EnableAdditionalHeader3 = EnableAdditionalHeader3; oSettings.AdditionalHeader3 = AdditionalHeader3; oSettings.AdditionalHeaderValue3 = AdditionalHeaderValue3; }
public PostFormQuickHeaders(EwsEditorAppSettings oCurrentAppSettings) { InitializeComponent(); _CurrentAppSettings = oCurrentAppSettings; }