Example #1
0
 protected override void ChildUpdate()
 {
     base.ChildUpdate();
     if (Input.GetKeyUp(KeyCode.Return))
     {
         ConfirmClick?.Invoke();
     }
 }
Example #2
0
 protected override void ChildUpdate()
 {
     base.ChildUpdate();
     if (UIManager.Instance.ConfirmKeyDownHandler != null && UIManager.Instance.ConfirmKeyDownHandler.Invoke())
     {
         ConfirmClick?.Invoke();
     }
 }
 public Schema()
     : base()
 {
     InstanceType = typeof(__DialogPa__);
     ClassName    = "DialogPage";
     Properties.ClearExposed();
     Html = Add <__TString__>("Html");
     Html.DefaultValue = "/KitchenSink/DialogPage.html";
     Html.SetCustomAccessors((_p_) => { return(((__DialogPa__)_p_).__bf__Html__); }, (_p_, _v_) => { ((__DialogPa__)_p_).__bf__Html__ = (System.String)_v_; }, false);
     OpenClick = Add <__TLong__>("OpenClick$");
     OpenClick.DefaultValue = 0L;
     OpenClick.Editable     = true;
     OpenClick.SetCustomAccessors((_p_) => { return(((__DialogPa__)_p_).__bf__OpenClick__); }, (_p_, _v_) => { ((__DialogPa__)_p_).__bf__OpenClick__ = (System.Int64)_v_; }, false);
     OpenClick.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.OpenClick()
         {
             App = (DialogPage)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((DialogPage)pup).Handle((Input.OpenClick)input); });
     Opened = Add <__TBool__>("Opened");
     Opened.DefaultValue = false;
     Opened.SetCustomAccessors((_p_) => { return(((__DialogPa__)_p_).__bf__Opened__); }, (_p_, _v_) => { ((__DialogPa__)_p_).__bf__Opened__ = (System.Boolean)_v_; }, false);
     RejectClick = Add <__TLong__>("RejectClick$");
     RejectClick.DefaultValue = 0L;
     RejectClick.Editable     = true;
     RejectClick.SetCustomAccessors((_p_) => { return(((__DialogPa__)_p_).__bf__RejectClick__); }, (_p_, _v_) => { ((__DialogPa__)_p_).__bf__RejectClick__ = (System.Int64)_v_; }, false);
     RejectClick.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.RejectClick()
         {
             App = (DialogPage)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((DialogPage)pup).Handle((Input.RejectClick)input); });
     ConfirmClick = Add <__TLong__>("ConfirmClick$");
     ConfirmClick.DefaultValue = 0L;
     ConfirmClick.Editable     = true;
     ConfirmClick.SetCustomAccessors((_p_) => { return(((__DialogPa__)_p_).__bf__ConfirmClick__); }, (_p_, _v_) => { ((__DialogPa__)_p_).__bf__ConfirmClick__ = (System.Int64)_v_; }, false);
     ConfirmClick.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.ConfirmClick()
         {
             App = (DialogPage)pup, Template = (TLong)prop, Value = value
         }); }, (Json pup, Starcounter.Input <Int64> input) => { ((DialogPage)pup).Handle((Input.ConfirmClick)input); });
     Message = Add <__TString__>("Message");
     Message.DefaultValue = "Opend dialog and select an action";
     Message.SetCustomAccessors((_p_) => { return(((__DialogPa__)_p_).__bf__Message__); }, (_p_, _v_) => { ((__DialogPa__)_p_).__bf__Message__ = (System.String)_v_; }, false);
     MessageCss = Add <__TString__>("MessageCss");
     MessageCss.DefaultValue = "alert alert-info";
     MessageCss.SetCustomAccessors((_p_) => { return(((__DialogPa__)_p_).__bf__MessageCss__); }, (_p_, _v_) => { ((__DialogPa__)_p_).__bf__MessageCss__ = (System.String)_v_; }, false);
 }
Example #4
0
 private void btnConfirm_Click(object sender, EventArgs e)
 {
     ConfirmClick?.Invoke(this, e);
 }