Example #1
0
 public History()
 {
     this.CCH = new ClientConnectionHelp();
     InitializeComponent();
     CCH.LoopConnect();
     CCH.ReceiveMessage();
 }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ClientConnectionHelp CCH = new ClientConnectionHelp();

            CCH.LoopConnect();
            CCH.SendMesage("save!!!" + JsonConvert.SerializeObject(pi));
            Thread.Sleep(2000);
            this.Hide();
        }