/// <summary> /// Raises the <see cref="E:StateChanged"/> event. /// </summary> /// <param name="e">The <see cref="Saraff.Acs.Core.AutomatonEventArgs"/> instance containing the event data.</param> protected virtual void OnStateChanged(AutomatonEventArgs e) { if (this.StateChanged != null) { this.StateChanged(this, e); } }
/// <summary> /// Обработчик событий изменения состояния. /// </summary> /// <param name="sender">Истояник события.</param> /// <param name="e">Аргументы события.</param> private void _EventHandler(object sender, AutomatonEventArgs e) { this.Current = this._edges[this.Current.GetType()][e.Name]; }