Пример #1
0
        protected void btnSend_Click(object sender, EventArgs e)
        {
            TestBotServiceClient cl = null;

            try
            {
                cl = new TestBotServiceClient();
                cl.Open();

                GridView gv = GridView1;
                for (int ordNmb = 0; ordNmb < Math.Min(gv.Rows.Count, 5); ordNmb++)
                {
                    GridViewRow grv        = gv.Rows[ordNmb];
                    int         chatId     = int.Parse(grv.Cells[1].Text);
                    string      fio        = grv.Cells[2].Text;
                    string      lastEnter  = grv.Cells[4].Text;
                    string      bestResult = grv.Cells[5].Text;
                    bool        flg        = cl.GetUser(ordNmb + 1, chatId, fio, lastEnter, int.Parse(bestResult));
                }
            }
            catch (Exception ex)
            {
            }
            finally
            {
                cl.Close();
            }
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            TestBotServiceClient cl = new TestBotServiceClient();

            cl.Open();
            bool flg = cl.GetUser(1, 709190378, "Uliana Borisovets", "2020-06-19 19:28:09.157", 30);

            cl.Close();
        }