Exemplo n.º 1
0
 public UITextField(BoolOutputSig hasFocusJoin, BoolInputSig setFocusJoinOn, BoolInputSig setFocusJoinOff,
                    BoolInputSig enableJoin, BoolInputSig visibleJoin, StringInputSig textJoinToDevice,
                    StringOutputSig textJoinFromDevice, UILabel titleLabel, UIButton enterButton, UIButton escButton, UIButton clearButton)
 {
     HasFocusJoin    = hasFocusJoin;
     SetFocusJoinOn  = setFocusJoinOn;
     SetFocusJoinOff = setFocusJoinOff;
     EnableJoin      = enableJoin;
     if (EnableJoin != null)
     {
         EnableJoin.BoolValue = true;
     }
     VisibleJoin = visibleJoin;
     if (VisibleJoin != null)
     {
         VisibleJoin.BoolValue = true;
     }
     TextJoinToDevice             = textJoinToDevice;
     TextJoinToDevice.StringValue = "";
     TextJoinFromDevice           = textJoinFromDevice;
     Device                 = hasFocusJoin.Owner as BasicTriList;
     TitleLabel             = titleLabel;
     this.EnterButton       = enterButton;
     this.EnterButton.Title = "Enter";
     this.EscButton         = escButton;
     this.EscButton.Title   = "Escape";
     this.ClearButton       = clearButton;
     this.ClearButton.Enable();
 }
 public static void DetachSigEventHandler(this StringOutputSig cue, UnifiedSigEventHandler handler)
 {
     cue.DetachSigEventHandler(handler, eSigEvent.StringChange);
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sig"></param>
 /// <param name="a"></param>
 /// <returns></returns>
 public static StringOutputSig SetStringSigAction(this StringOutputSig sig, Action <string> a)
 {
     sig.UserObject = a;
     return(sig);
 }