Esempio n. 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     testTimer.Interval = TimeSpan.FromMilliseconds(TimeMilliseconds);
     testTimer.Tick    += new EventHandler(Timer_Tick);
     loading.ChangeState();
     testTimer.Start();
     if (isSendMsg)
     {
         if (con == null || con.Count == 0)
         {
             Responsible.SendCommand(sendMsgType);
         }
         else
         {
             Responsible.SendMsg(sendMsgType, con);
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 发送命令
 /// </summary>
 /// <param name="msgType"></param>
 public void SendCommand(MsgType msgType)
 {
     Responsible.SendCommand(msgType);
 }