示例#1
0
        public BuildIpAddressStatus(UIComponent componnent)
        {
            _ReleaseHelper = new ReleaseHelper();

            _Root         = componnent.Page.RootElement;
            _Connection   = componnent.Page.RootElement.FindName("Connection") as global::Stride.UI.Controls.Button;
            _Address      = componnent.Page.RootElement.FindName("Address") as global::Stride.UI.Controls.EditText;
            _Port         = componnent.Page.RootElement.FindName("Port") as global::Stride.UI.Controls.EditText;
            _Address.Text = "114.34.92.204";
            _Port.Text    = "53772";
        }
示例#2
0
 public static IObservable <System.Reactive.EventPattern <TouchEventArgs> > TouchUpObs(this global::Stride.UI.Controls.Button button)
 {
     return(System.Reactive.Linq.Observable.FromEventPattern <TouchEventArgs>((h) => button.TouchUp += h, (h) => button.TouchUp -= h));
 }