Ejemplo n.º 1
0
        private void startPushMsgToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Program.allContacts == null || Program.allContacts.Count == 0)
            {
                Program.Heart_Timer_Tick(null, null);
            }
            if (Program.allContacts == null)
            {
                MessageBox.Show("等待接收到心跳包!");

                return;
            }
            cps           = new ChartPushService();
            cps.MessageTo = UpdateMsg;
            cps.Init();
            cps.Start();
        }
Ejemplo n.º 2
0
 private void btn_test_Click(object sender, EventArgs e)
 {
     txt_returnUrl.Text = ChartPushService.getShortLink(this.txt_testUrl.Text.Trim());
 }