コード例 #1
0
 // TODO: If desired, change parameters to Find method to search based on a property of ObjectiveValues.
 public ObjectiveValues Find(ObjectiveValues objValue)
 {
     foreach (ObjectiveValues lDetailValue in this)
         if (lDetailValue == objValue)    // Found it
             return lDetailValue;
     return null;    // Not found
 }
コード例 #2
0
 public int IndexOf(ObjectiveValues objValue)
 {
     for (int i = 0; i < List.Count; i++)
         if (this[i] == objValue)    // Found it
             return i;
     return -1;
 }
コード例 #3
0
        public void AddObjectiveToTrack(string name, float score)
        {
            //OBJECTIVESCORES.Add(name, 0);'
            ObjectiveValues val = new ObjectiveValues(name, 0, score);

            objectiveCollection.Add(val);
        }
コード例 #4
0
 // TODO: If desired, change parameters to Find method to search based on a property of ObjectiveValues.
 public ObjectiveValues Find(ObjectiveValues objValue)
 {
     foreach (ObjectiveValues lDetailValue in this)
     {
         if (lDetailValue == objValue)    // Found it
         {
             return(lDetailValue);
         }
     }
     return(null);    // Not found
 }
コード例 #5
0
 public int IndexOf(ObjectiveValues objValue)
 {
     for (int i = 0; i < List.Count; i++)
     {
         if (this[i] == objValue)    // Found it
         {
             return(i);
         }
     }
     return(-1);
 }
コード例 #6
0
ファイル: Capability.cs プロジェクト: hanlonal/CSE4982013
 public void AddObjectiveToTrack(string name, float score)
 {
     //OBJECTIVESCORES.Add(name, 0);'
     ObjectiveValues val = new ObjectiveValues(name, 0, score);
     objectiveCollection.Add(val);
 }
コード例 #7
0
 public void Remove(ObjectiveValues objValue)
 {
     List.Remove(objValue);
 }
コード例 #8
0
 public void Insert(int index, ObjectiveValues objValue)
 {
     List.Insert(index, objValue);
 }
コード例 #9
0
 // TODO: If you changed the parameters to Find (above), change them here as well.
 public bool Contains(ObjectiveValues objValue)
 {
     return (Find(objValue) != null);
 }
コード例 #10
0
 public int Add(ObjectiveValues objValue)
 {
     return List.Add(objValue);
 }
コード例 #11
0
 // TODO: If you changed the parameters to Find (above), change them here as well.
 public bool Contains(ObjectiveValues objValue)
 {
     return(Find(objValue) != null);
 }
コード例 #12
0
 public void Remove(ObjectiveValues objValue)
 {
     List.Remove(objValue);
 }
コード例 #13
0
 public void Insert(int index, ObjectiveValues objValue)
 {
     List.Insert(index, objValue);
 }
コード例 #14
0
 // public methods...
 #region Add
 public int Add(ObjectiveValues objValue)
 {
     return(List.Add(objValue));
 }