Esempio n. 1
0
        private void timer1_Elapsed(object sender, ElapsedEventArgs e)
        {
            try
            {
                lock (obj)
                {
                    TimerSender timerSender = new TimerSender();
                    timerSender.Send();

                    GroupSender groupSender = new GroupSender();
                    groupSender.Send();

                    GroupTimeSender groupTimeSender = new GroupTimeSender();
                    groupTimeSender.Send();
                }
            }
            catch (Exception ex)
            {
                Log.Info(" ========== 发生异常 ============ ");
                Log.Info(" ==========" + ex + " ============ ");
            }
        }
Esempio n. 2
0
        private void Button4_Click(object sender, EventArgs e)
        {
            GroupTimeSender groupTimeSender = new GroupTimeSender();

            groupTimeSender.Send();
        }