// 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
 }
 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
 public void AddObjectiveToTrack(string name, float score)
 {
     //OBJECTIVESCORES.Add(name, 0);'
     ObjectiveValues val = new ObjectiveValues(name, 0, score);
     objectiveCollection.Add(val);
 }
 public void Remove(ObjectiveValues objValue)
 {
     List.Remove(objValue);
 }
 public void Insert(int index, ObjectiveValues objValue)
 {
     List.Insert(index, objValue);
 }
 // TODO: If you changed the parameters to Find (above), change them here as well.
 public bool Contains(ObjectiveValues objValue)
 {
     return (Find(objValue) != null);
 }
 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));
 }