private static AsyncUiTask CreateVisitMyAccountTask() { AsyncUiTask task = new AsyncUiTask( UIConstants.VisitMyAccountTask, Resources.ContosoServicesVisitMyAccountTask_DisplayName, delegate(object obj) { Uri userPortal = null; if (ContosoEmailEnabled) { userPortal = HostedEmailIntegrationManager.Configuration.Service.ServiceUserPortal; } if (userPortal == null) { userPortal = new Uri(Resources.ContosoServices_DefaultUserPortal); } System.Diagnostics.Process.Start(userPortal.ToString()); return(null); }, true //global task ); return(task); }
private static AsyncUiTask CreateCustomAction() { var task = new AsyncUiTask("Custom action", delegate(object sender) { MessageBox.Show("Custom action", "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); return(null); }); return(task); }
private static AsyncUiTask CreateCustomAction() { var task = new AsyncUiTask("Custom action", delegate(object sender) { MessageBox.Show("Custom action", "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); return (null); }); return (task); }
private static AsyncUiTask CreateChangeAdminAccountTask() { AsyncUiTask task = new AsyncUiTask( UIConstants.ChangeAdminAccountTask, Resources.ContosoServicesChangeAdminAccountTask_DisplayName, delegate(object obj) { //don't need to check if addin Id is valid since it has been checked when tab loaded string configureWizardResetRelativePath = "Wssg.HostedEmailConfigureWizard.Reset.vbs"; System.Diagnostics.Process.Start(configureWizardResetRelativePath); return null; }, true //global task ); task.ConditionProvider = ChangeAdminAccountCondition; return task; }
private static AsyncUiTask CreateDisableServicesTask() { AsyncUiTask task = new AsyncUiTask( UIConstants.DisableServicesTask, Resources.ContosoServicesDisableServicesTask_DisplayName, delegate(object obj) { string configureWizardRelativePath = "Wssg.HostedEmailConfigureWizard.vbs"; System.Diagnostics.Process.Start(configureWizardRelativePath); return(null); }, true //global task ); task.ConditionProvider = DisableServicesCondition; return(task); }
private static AsyncUiTask CreateChangeAdminAccountTask() { AsyncUiTask task = new AsyncUiTask( UIConstants.ChangeAdminAccountTask, Resources.ContosoServicesChangeAdminAccountTask_DisplayName, delegate(object obj) { //don't need to check if addin Id is valid since it has been checked when tab loaded string configureWizardResetRelativePath = "Wssg.HostedEmailConfigureWizard.Reset.vbs"; System.Diagnostics.Process.Start(configureWizardResetRelativePath); return(null); }, true //global task ); task.ConditionProvider = ChangeAdminAccountCondition; return(task); }
private static AsyncUiTask CreateVisitMyAccountTask() { AsyncUiTask task = new AsyncUiTask( UIConstants.VisitMyAccountTask, Resources.ContosoServicesVisitMyAccountTask_DisplayName, delegate(object obj) { Uri userPortal = null; if (ContosoEmailEnabled) { userPortal = HostedEmailIntegrationManager.Configuration.Service.ServiceUserPortal; } if(userPortal == null) { userPortal = new Uri(Resources.ContosoServices_DefaultUserPortal); } System.Diagnostics.Process.Start(userPortal.ToString()); return null; }, true //global task ); return task; }
private static AsyncUiTask CreateDisableServicesTask() { AsyncUiTask task = new AsyncUiTask( UIConstants.DisableServicesTask, Resources.ContosoServicesDisableServicesTask_DisplayName, delegate(object obj) { string configureWizardRelativePath = "Wssg.HostedEmailConfigureWizard.vbs"; System.Diagnostics.Process.Start(configureWizardRelativePath); return null; }, true //global task ); task.ConditionProvider = DisableServicesCondition; return task; }