Ejemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            var button = FindViewById <Button>(Resource.Id.MyButton);

            button.Click += (s, e) => {
                var ds = new MyDataSource();
                ds.Authenticate().ContinueWith(
                    t =>
                {
                    var isauth = t.Result;
                    if (isauth)
                    {
                        var result = ds.QueryDataSoruce <DsParams>("your dataset", new DsParams {
                            qty = 2
                        }).Result;
                        System.Diagnostics.Debug.WriteLine(result.ToString());
                    }
                }
                    );
            };
        }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var ds = new MyDataSource();

            ds.Authenticate().ContinueWith(
                t =>
            {
                var isauth = t.Result;
                if (isauth)
                {
                    var result = ds.QueryDataSoruce <DsParams>("getTellagoVacationsfff", new DsParams {
                        qty = 2
                    }).Result;
                    System.Diagnostics.Debug.WriteLine(result.ToString());
                }
            }
                );
        }