private void ExecuteCheckCmd(MetaViewModel p)
        {
            switch (p.IsChoose)
            {
            //未选中->选中
            case 1:
            {
                if (!SelectList.Contains(p))
                {
                    SelectList.Add(p);
                }
                break;
            }

            default:
            {
                //选中->未选中
                if (SelectList.Contains(p))
                {
                    SelectList.Remove(p);
                }
                break;
            }
            }
        }
        private bool CanExecuteUpdateCmd(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            MetaViewModel meta = obj as MetaViewModel;

            if (string.IsNullOrEmpty(meta.Meta.TaskCode) || string.IsNullOrEmpty(meta.Meta.Addr) || string.IsNullOrEmpty(meta.Meta.VideoPath))
            {
                return(false);
            }
            if (!string.IsNullOrEmpty(meta.Meta.PipeCode) && meta.Meta.PipeCode.Split('-').Length == 2)
            {
                return(true);
            }
            return(false);
        }
 private void ExecuteUpdateCmd(object obj)
 {
     MetaViewModel meta   = obj as MetaViewModel;
     int           result = MetaService.GetService().UpdateMeta(meta);
 }