private void SetState(OnewheelConnectionHelperState state) { if (state != this.state) { Logger.Debug("[OnewheelConnectionHelper] new state: " + this.state + " -> " + state); OnewheelConnectionHelperStateChangedEventArgs args = new OnewheelConnectionHelperStateChangedEventArgs(this.state, state); this.state = state; OnewheelConnectionHelperStateChanged?.Invoke(this, args); } }
private void INSTANCE_OnewheelConnectionHelperStateChanged(OnewheelConnectionHelper sender, OnewheelConnectionHelperStateChangedEventArgs args) { ConnectionState = args.NEW_STATE; }