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); } } }
/// <summary> /// 发送命令 /// </summary> /// <param name="msgType"></param> public void SendCommand(MsgType msgType) { Responsible.SendCommand(msgType); }