private void OnAmbientTick(IntPtr application, IntPtr watchTime) { AmbientTickEventArgs e = new AmbientTickEventArgs(); e.Application = this; e.WatchTime = WatchTime.GetWatchTimeFromPtr(watchTime); _ambientTickEventHandler?.Invoke(this, e); }
internal static WatchTime GetWatchTimeFromPtr(global::System.IntPtr cPtr) { WatchTime ret = new WatchTime(cPtr, false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private void OnAmbientTick(IntPtr application, IntPtr watchTime) { AmbientTickEventArgs e = new AmbientTickEventArgs(); using (e.Application = Application.GetApplicationFromPtr(application)) { using (e.WatchTime = WatchTime.GetWatchTimeFromPtr(watchTime)) { _ambientTickEventHandler?.Invoke(this, e); } } }
private void OnAmbientTick(IntPtr application, IntPtr watchTime) { AmbientTickEventArgs e = new AmbientTickEventArgs(); if (application != null) { e.Application = Application.GetApplicationFromPtr(application); } if (watchTime != null) { e.WatchTime = WatchTime.GetWatchTimeFromPtr(watchTime); } _ambientTickEventHandler?.Invoke(this, e); }
/// <summary> /// Default Constructor. /// </summary> public AmbientTickEventArgs(WatchTime watchTime) { _watchTime = watchTime; }
/// <summary> /// Default Constructor. /// </summary> public TimeTickEventArgs(WatchTime watchTime) { _watchTime = watchTime; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WatchTime obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }