Beispiel #1
0
 public bool IsExistPoseCombination(PoseCombination poseCombination)
 {
     foreach (PoseCombination poses in _poseCollection)
     {
         if (poses.GetPoseList().SequenceEqual(poseCombination.GetPoseList()))
         {
             return(true);
         }
     }
     return(false);
 }
Beispiel #2
0
        public bool IsExistPoseCombinationEdit(PoseCombination poseCombination, int editIndex)
        {
            PoseCombination editPoseCombination = _poseCollection[editIndex];

            _poseCollection.RemoveAt(editIndex);
            foreach (PoseCombination poses in _poseCollection)
            {
                if (poses.GetPoseList().SequenceEqual(poseCombination.GetPoseList()))
                {
                    _poseCollection.Insert(editIndex, editPoseCombination);
                    return(true);
                }
            }
            _poseCollection.Insert(editIndex, editPoseCombination);
            return(false);
        }
 public bool IsExistPoseCombinationEdit(PoseCombination poseCombination, int editIndex)
 {
     PoseCombination editPoseCombination = _poseCollection[editIndex];
     _poseCollection.RemoveAt(editIndex);
     foreach (PoseCombination poses in _poseCollection)
     {
         if (poses.GetPoseList().SequenceEqual(poseCombination.GetPoseList()))
         {
             _poseCollection.Insert(editIndex, editPoseCombination);
             return true;
         }
     }
     _poseCollection.Insert(editIndex, editPoseCombination);
     return false;
 }
 public bool IsExistPoseCombination(PoseCombination poseCombination)
 {
     foreach (PoseCombination poses in _poseCollection)
     {
         if (poses.GetPoseList().SequenceEqual(poseCombination.GetPoseList()))
             return true;
     }
     return false;
 }