Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 4
0
 private void login_Load(object sender, EventArgs e)
 {
     CommunicationClient.Connect();
 }