private void button1_Click(object sender, EventArgs e)
        {
            resolver    = textBox1.Text;
            titleTask   = textBox2.Text;
            information = textBox3.Text;
            status      = textBox4.Text;

            Model.Validators valid = new Model.Validators();
            Boolean          flag  = valid.validNewTask(titleTask, information, status, resolver);

            if (flag == true)
            {
                string param = createdPerson + "/" + nowTime + "/" + status + "/" + information + "/" + titleTask + "/" + resolver;

                string code = "102";
                string data = param;

                Model.Base64Converter _encodeData = new Model.Base64Converter();
                data = _encodeData.encodeBase64string(data);
                Controller.ServerConnect send = new Controller.ServerConnect();
                send.sendMessage(code + "~" + data, connect, "", null);

                Close();
            }
            else
            {
                MessageBox.Show("Probably any value is incorrect!.", "Error in input value.", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 2
0
        public void allTask(TcpClient connectOptions, DataGridView panel)
        {
            Controller.ServerConnect send = new Controller.ServerConnect();
            string code = "104";

            send.sendMessage(code + "~", connectOptions, "", panel);
        }
Exemplo n.º 3
0
        public void myTask(TcpClient connectOptions, DataGridView panel, String email)
        {
            Controller.ServerConnect send = new Controller.ServerConnect();
            string code = "106";

            send.sendMessage(code + "~" + email, connectOptions, "", panel);
        }
        private void sendParamToServer(String val)
        {
            Model.Base64Converter encode = new Model.Base64Converter();
            val = encode.encodeBase64string(val);

            Controller.ServerConnect send = new Controller.ServerConnect();
            send.sendMessage("100~" + val, tcpclnt, "", null);

            foreach (Form f in Application.OpenForms)
            {
                if (f.Name == "Form1")
                {
                    Hide();
                    f.Show();
                }
            }
        }