private void summaryPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e) { summaryPrompt.Visible = RegisterTaskOnFinish; if (SummaryRegistrationNotice != null) { summaryPrompt.Text = SummaryRegistrationNotice; } openDlgAfterCheck.Visible = AllowEditorOnFinish; if (EditorOnFinishText != null) { openDlgAfterCheck.Text = EditorOnFinishText; } string fmt = string.IsNullOrEmpty(SummaryFormatString) ? EditorProperties.Resources.WizardSummaryFormatString : SummaryFormatString; sumText.Text = string.Format(fmt, nameText.Text, descText.Text, trigger.ToString(), TaskEnumGlobalizer.GetString(action.ActionType) + ": " + action.ToString()); sumText.Select(0, 0); }
public static bool TriggerEquals(Microsoft.Win32.TaskScheduler.Trigger a, Microsoft.Win32.TaskScheduler.Trigger b) { return(a.ToString() == b.ToString() && a.StartBoundary == b.StartBoundary && a.EndBoundary == b.EndBoundary && a.ExecutionTimeLimit == b.ExecutionTimeLimit); }
private static void CheckTriggerTypes(Trigger t) { IDev2TaskService s = new Dev2TaskService(new TaskServiceConvertorFactory()); ITaskServiceConvertorFactory fact = new TaskServiceConvertorFactory(); ServerSchedulerFactory schedulerFactory = new ServerSchedulerFactory(s, fact, new DirectoryHelper()); var trig = schedulerFactory.CreateTrigger(t); Assert.AreEqual(t.TriggerType, trig.Trigger.TriggerType); Assert.AreEqual(t.ToString(), trig.Trigger.ToString()); }