Exemplo n.º 1
0
        private void OnAmbientTick(IntPtr application, IntPtr watchTime)
        {
            AmbientTickEventArgs e = new AmbientTickEventArgs();

            e.Application = this;
            e.WatchTime   = WatchTime.GetWatchTimeFromPtr(watchTime);
            _ambientTickEventHandler?.Invoke(this, e);
        }
Exemplo n.º 2
0
        internal static WatchTime GetWatchTimeFromPtr(global::System.IntPtr cPtr)
        {
            WatchTime ret = new WatchTime(cPtr, false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 3
0
        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);
                }
            }
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Default Constructor.
 /// </summary>
 public AmbientTickEventArgs(WatchTime watchTime)
 {
     _watchTime = watchTime;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Default Constructor.
 /// </summary>
 public TimeTickEventArgs(WatchTime watchTime)
 {
     _watchTime = watchTime;
 }
Exemplo n.º 7
0
 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);
 }