Exemplo n.º 1
0
        async void OnImageClickedAsync(object sender, EventArgs e)
        {
            Image image = (Image)sender;
            int   atsu  = 0;
            int   samu  = 0;

            //string str = "None";
            if (image.Equals(this.imageAtsu))
            {
                atsu = 1;
            }
            else if (image.Equals(this.imageSamu))
            {
                samu = 1;
            }
            else if (image.Equals(this.imageKanri))
            {
            }

            MyHttpTest.PostRequest(atsu, samu);
            var res = MyHttpTest.GetRequest();
            //DisplayAlert("Tapped", MyHttpTest.PostRequest(1, 0) + " is Tapped false", "OK");

            await Navigation.PushModalAsync(new ResultPage(res.Hot, res.Cold));

            //DisplayAlert("Tapped", str  + " is Tapped false", "OK");
        }
Exemplo n.º 2
0
        private void OnUpdateButtonClicked(object sender, EventArgs s)
        {
            var res = MyHttpTest.GetRequest();

            this.PlotView.Model = getPlotModel(res.Hot, res.Cold);
        }