///<summary>Method to raise event CreatedEvt.</summary> public void On_CreatedEvt(Efl.Ui.FactoryCreatedEvt_Args e) { EventHandler <Efl.Ui.FactoryCreatedEvt_Args> evt; lock (eventLock) { evt = (EventHandler <Efl.Ui.FactoryCreatedEvt_Args>)eventHandlers[CreatedEvtKey]; } evt?.Invoke(this, e); }
private void on_CreatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt) { Efl.Ui.FactoryCreatedEvt_Args args = new Efl.Ui.FactoryCreatedEvt_Args(); args.arg = evt.Info;; try { On_CreatedEvt(args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } }