/// <summary>
        /// 全选
        /// </summary>
        /// <param name="isSelected">是否已选择</param>
        private void OnSelectAll(bool?isSelected)
        {
            if (Associates == null || !Associates.Any())
            {
                return;
            }

            Associates.ForEach(salesOrder => salesOrder.IsSelected = isSelected.Value);
        }
 private bool CanCommandExecute()
 {
     return(Associates != null && Associates.Any(application => application.IsSelected == true));
 }