Beispiel #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
     }
 }
Beispiel #2
0
 protected virtual void OnDeviceUpdating(LuaProfileModule profileModel, LuaDeviceUpdatingEventArgs e)
 {
     DeviceUpdating?.Invoke(profileModel, e);
 }