Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string request  = "signup[" + txtrequest.Text.Trim();
            string response = CommunicationClient.sendRequestForString(request);

            txtrequest.Text = string.Empty;
            MessageBox.Show(response);
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string request  = "query[" + txtrequest.Text.Trim();
            string response = CommunicationClient.sendRequestForString(request);

            //MessageBox.Show(response);
            response_list = CommunicationClient.stringResponseToList(response);
            this.dataGridView1.DataSource = CommunicationClient.ConvertListToDataTable(response_list);
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            string request  = txtrequest.Text.Trim();
            string response = CommunicationClient.sendRequestForString(request);

            if (response == "authenticated")
            {
                MessageBox.Show("Exito");
                MDIParent1 doform = new MDIParent1();
                doform.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("error");
            }
            //MessageBox.Show(response);
        }