/// <summary> /// 校验广播到本地的列控命令 /// </summary> /// <param name="cmd"></param> private void CheckSpeedCmd(MsgSpeedCommand cmd) { // 非此命令编辑用户才能校验 if (cmd.User != ConfigurationManager.ConnectionStrings["User"].ConnectionString) { NewSpeedWindow window = new NewSpeedWindow(eventAggregator, cmd, true); window.Show(); } }
/// <summary> /// 新建列控命令窗口 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CreateCommand(object sender, RoutedEventArgs e) { NewSpeedWindow window = new NewSpeedWindow(eventAggregator, null); window.ShowDialog(); }