Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string      str = tb_Send.Text;
            Result_Info r   = (Result_Info)Helper_Json.Decode(str);

            SetMyTextBoxValue(r.msg);
        }
Пример #2
0
        private void H_redis_RedisSubMessageEvent(string str)
        {
            //string msg = System.Text.Encoding.UTF8.GetString(str);
            SetMyTextBoxValue(str);
            Result_Info r = (Result_Info)Helper_Json.Decode(str, typeof(Result_Info));

            SetMyTextBoxValue(r.msg);
        }
Пример #3
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            Command_info c = new Command_info();

            c.type = 2;
            c.msg  = "D:\\,E:\\";
            c.msg2 = str_search;
            string str_c = Helper_Json.Encode(c);

            long r_l = h_redis.RedisPub(str_r_rep, str_c);

            SetMyTextBoxValue(str_r_rep + ":" + str_c);
        }
Пример #4
0
        private void b_Sender_Click(object sender, EventArgs e)
        {
            Command_info c = new Command_info();

            c.type = 1;
            c.msg  = "";
            c.msg2 = "";
            string str_c = Helper_Json.Encode(c);

            long r_l = h_redis.RedisPub(str_r_rep, str_c);

            SetMyTextBoxValue(str_r_rep + ":" + str_c);
        }