public static ClientLogicalForm InvokeCatchLookup(this ClientLogicalControl control) { var rootForm = control.GetRootForm(); return(rootForm.Session.CatchLookupForm(() => rootForm.Session.InvokeInteraction( new InvokeActionInteraction(control, SystemAction.Lookup)))); }
/// <summary>Save a value for the control.</summary> /// <param name="control">The control.</param> /// <param name="newValue">The new Value.</param> public static void SaveValue(this ClientLogicalControl control, object newValue) { control.GetRootForm().Session.InvokeInteraction(new SaveValueInteraction(control, newValue)); }
/// <summary>Invokes the specified control and returns the expected dialog.</summary> /// <remarks>The consumer specifies the expected form type to retrieve. If this could not be matched, the invocation is performed but null is returned.</remarks> /// <param name="control">The control.</param> /// <returns>The expected dialog.</returns> public static ClientLogicalForm InvokeCatchDialog(this ClientLogicalControl control) { var rootForm = control.GetRootForm(); return(rootForm.Session.CatchDialog(() => rootForm.Session.InvokeInteraction(new InvokeActionInteraction(control)))); }
/// <summary>Invokes the specified control.</summary> /// <remarks>The consumer specifies the expected form type to retrieve. If this could not be matched, the invocation is performed but null is returned.</remarks> /// <param name="control">The control.</param> public static void Invoke(this ClientLogicalControl control) { control.GetRootForm().Session.InvokeInteraction(new InvokeActionInteraction(control)); }