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 } }
private void OnDeviceDrawnEvent(object sender, ProfileDeviceEventsArg e) { try { var wrapper = new LuaDrawWrapper(e.DrawingContext, e.UpdateType); var args = new LuaDeviceDrawingEventArgs(e.UpdateType, e.DataModel, e.Preview, wrapper); LuaInvoke(_profileModel, () => OnDeviceDrawing(LuaManager.ProfileModule, args)); } catch (Exception) { // ignored } }
public void RaiseDeviceDrawnEvent(ProfileDeviceEventsArg e) { OnDeviceDrawnEvent?.Invoke(this, e); }
private void RaiseDeviceUpdatedEvent(ProfileDeviceEventsArg e) { OnDeviceUpdatedEvent?.Invoke(this, e); }
public void RaiseDeviceDrawnEvent(ProfileDeviceEventsArg e) { var handler = OnDeviceDrawnEvent; handler?.Invoke(this, e); }
private void RaiseDeviceUpdatedEvent(ProfileDeviceEventsArg e) { var handler = OnDeviceUpdatedEvent; handler?.Invoke(this, e); }