/// <summary> /// Method which is called when any Workspace Rule Action is invoked. /// </summary> /// <param name="ActionName">The name of the Workspace Rule Action that was invoked.</param> public void RuleActionInvoked(string ActionName) { switch (ActionName) { case "PopulateContactDetails": _recordContext.ExecuteEditorCommand(global::RightNow.AddIns.Common.EditorCommand.Save); PopulateContactDetailsHandler populatecontact = new PopulateContactDetailsHandler(_recordContext); populatecontact.PopulateContactDetails(); break; case "WOTypeDuration": PopulateManualDuration populateDuration = new PopulateManualDuration(_recordContext); populateDuration.Handler(); break; default: break; } }
/// <summary> /// Method which is called when any Workspace Rule Action is invoked. /// </summary> /// <param name="ActionName">The name of the Workspace Rule Action that was invoked.</param> public void RuleActionInvoked(string ActionName) { switch (ActionName) { case "PopulateContactDetails" : _recordContext.ExecuteEditorCommand(global::RightNow.AddIns.Common.EditorCommand.Save); PopulateContactDetailsHandler populatecontact = new PopulateContactDetailsHandler(_recordContext); populatecontact.PopulateContactDetails(); break; case "WOTypeDuration" : PopulateManualDuration populateDuration = new PopulateManualDuration(_recordContext); populateDuration.Handler(); break; default: break; } }