Example #1
0
 public bool Change(string name, bool force)
 {
     if (force)
     {
         if (list.Contains(name))
         {
             myState = list.Item(name);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(Change(name));
     }
 }
Example #2
0
 public State(string name, string itemName)
 {
     list    = StateList.GetList(name);
     myState = list.Item(itemName);
 }