private void OnDeviceUpdatedEvent(object sender, ProfileDeviceEventsArg e) { try { var args = new LuaDeviceUpdatingEventArgs(e.UpdateType, e.DataModel, e.Preview); LuaInvoke(_profileModel, () => OnDeviceUpdating(LuaManager.ProfileModule, args)); } catch (Exception) { // ignored } }
protected virtual void OnDeviceUpdating(LuaProfileModule profileModel, LuaDeviceUpdatingEventArgs e) { DeviceUpdating?.Invoke(profileModel, e); }