Example #1
0
        private void toolStripStatus_Sua_Click(object sender, EventArgs e)
        {
            if (Validate())
            {
                Server_Client.Client cl = new Server_Client.Client();
                this.client1 = cl.Connect(Luu.IP, Luu.Ports);
                Entity.NhomTKKeToan pb = new Entity.NhomTKKeToan("Update", Convert.ToInt32(txtID.Text), txtmaNTKKT.Text, txttenNTKKT.Text, txtghichu.Text, false);
                clientstream = cl.SerializeObj(this.client1, "NhomTKKeToan", pb);

                int msg = 0;
                msg = (int)cl.DeserializeHepper(clientstream, msg);
                if (msg == 1)
                {
                    MessageBox.Show("Update thanh cong ...");
                }
                else
                {
                    MessageBox.Show("Update that bai");
                }
            }
        }
        private void toolStripStatus_Sua_Click(object sender, EventArgs e)
        {
            if (Validate())
            {
                Server_Client.Client cl = new Server_Client.Client();
                this.client1 = cl.Connect(Luu.IP, Luu.Ports);
                Entity.NhomTKKeToan pb = new Entity.NhomTKKeToan("Update", Convert.ToInt32(txtID.Text), txtmaNTKKT.Text, txttenNTKKT.Text, txtghichu.Text, false);
                clientstream = cl.SerializeObj(this.client1, "NhomTKKeToan", pb);

                int msg = 0;
                msg = (int)cl.DeserializeHepper(clientstream, msg);
                if (msg == 1)
                {
                    MessageBox.Show("Update thanh cong ...");
                }
                else
                    MessageBox.Show("Update that bai");

            }
        }