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)); } }
public State(string name, string itemName) { list = StateList.GetList(name); myState = list.Item(itemName); }