示例#1
0
        public async void Default_Load()
        {
            try
            {
                var counterTable = App.MobileService.GetTable <newcountertable>();
                var result       = await counterTable.Where(x => x.id == cheat1.Text).ToListAsync();

                var item = result.FirstOrDefault();
                if (result.Count == 0)
                {
                    newcountertable obj = new newcountertable
                    {
                        xeriteam1 = sumxeri1.Text,
                        xeriteam2 = sumxeri2.Text,
                        id        = cheat1.Text
                    };
                    await counterTable.InsertAsync(obj);
                }
                sumxeri1.Text = item.xeriteam1;
                sumxeri2.Text = item.xeriteam2;
                sum1          = int.Parse(sumxeri1.Text);
                sum2          = int.Parse(sumxeri2.Text);
            }
            catch (Exception x)
            {
            }
        }
示例#2
0
        private async void savediloti_ClickAsync(object sender, RoutedEventArgs e)
        {
            ring.IsActive = true;
            Sum();
            IMobileServiceTable <newcountertable> countertable = App.MobileService.GetTable <newcountertable>();

            try
            {
                newcountertable obj = new newcountertable
                {
                    dilotiteam1 = sumdiloti1.Text,
                    dilotiteam2 = sumdiloti2.Text,
                    id          = cheat1.Text,
                };
                await countertable.UpdateAsync(obj);
            }
            catch (Exception x)
            {
            }
            for (int i = 5; i >= 1; i--)
            {
                await Task.Delay(200);
            }
            ring.IsActive = false;
        }
示例#3
0
        private void save_Click(object sender, RoutedEventArgs e)
        {
            Sum();
            IMobileServiceTable <newcountertable> countertable = App.MobileService.GetTable <newcountertable>();

            try
            {
                newcountertable obj = new newcountertable();
                obj.agoniateam1 = sumagonia1.Text;
                obj.agoniateam2 = sumagonia2.Text;
                obj.id          = "ag";
                countertable.UpdateAsync(obj);
            }
            catch (Exception x)
            {
            }
        }
示例#4
0
        private void savexeri_Click(object sender, RoutedEventArgs e)
        {
            ring2.IsActive = true;
            Sum();
            IMobileServiceTable <newcountertable> countertable = App.MobileService.GetTable <newcountertable>();

            try
            {
                newcountertable obj = new newcountertable();
                obj.xeriteam1 = sumxeri1.Text;
                obj.xeriteam2 = sumxeri2.Text;
                obj.id        = cheat1.Text;
                countertable.UpdateAsync(obj);
            }
            catch (Exception x)
            {
            }
            ring2.IsActive = false;
        }
示例#5
0
        private void save_Click(object sender, RoutedEventArgs e)
        {
            ring1.IsActive = true;
            Sum();
            IMobileServiceTable <newcountertable> countertable = App.MobileService.GetTable <newcountertable>();

            try
            {
                newcountertable obj = new newcountertable
                {
                    agoniateam1 = sumagonia1.Text,
                    agoniateam2 = sumagonia2.Text,
                    id          = cheat1.Text,
                };
                countertable.UpdateAsync(obj);
            }
            catch (Exception x)
            {
            }
            ring1.IsActive = false;
        }