コード例 #1
0
        public static ClientLogicalForm InvokeCatchLookup(this ClientLogicalControl control)
        {
            var rootForm = control.GetRootForm();

            return(rootForm.Session.CatchLookupForm(() =>
                                                    rootForm.Session.InvokeInteraction(
                                                        new InvokeActionInteraction(control, SystemAction.Lookup))));
        }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
        /// <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))));
        }
コード例 #4
0
 /// <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));
 }