Esempio n. 1
0
 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
     }
 }
Esempio n. 2
0
 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
     }
 }
Esempio n. 3
0
 public void RaiseDeviceDrawnEvent(ProfileDeviceEventsArg e)
 {
     OnDeviceDrawnEvent?.Invoke(this, e);
 }
Esempio n. 4
0
 private void RaiseDeviceUpdatedEvent(ProfileDeviceEventsArg e)
 {
     OnDeviceUpdatedEvent?.Invoke(this, e);
 }
Esempio n. 5
0
        public void RaiseDeviceDrawnEvent(ProfileDeviceEventsArg e)
        {
            var handler = OnDeviceDrawnEvent;

            handler?.Invoke(this, e);
        }
Esempio n. 6
0
        private void RaiseDeviceUpdatedEvent(ProfileDeviceEventsArg e)
        {
            var handler = OnDeviceUpdatedEvent;

            handler?.Invoke(this, e);
        }