void addToData(State state, string text) { // create data to add StateContent temp = new StateContent(); // add the text temp._text = text; // add the possibilities by taking care of the number of default variables temp._possibility = new Access [0]; // adding data this.data.Add(state, temp); }
/// <summary> /// Equalses the specified s according to its content. /// </summary> /// <param name="s">The s.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> public bool Equals(GenericState <T> s) { return(StateContent.Equals(s.StateContent)); }
/// <summary> /// Returns a hash code for this instance according to its content. /// </summary> /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() { return(StateContent.GetHashCode()); }
public void AddContent_Leave(StateContent Content) { this.Content_Leave += Content; }
public void AddContent_Update(StateContent Content) { this.Content_Update += Content; }
public void AddContent_Enter(StateContent Content) { this.Content_Enter += Content; }