protected virtual void OnChangeState(DictaphoneState state) { if (ChangeState != null) { ChangeState(this, new DictaphoneStateEventArgs(state)); } }
public DictaphoneStateEventArgs(DictaphoneState state) { _state = state; }
void _dictaphone_ChangeState(object sender, DictaphoneStateEventArgs e) { _dictaphone_state = e.State; if (e.State == DictaphoneState.Initial) lblTime.Text = string.Format(timeFormat, "0"); }