Exemple #1
0
        /// <summary>
        /// The Region changed event callback function.
        /// </summary>
        /// <param name="source">The application instance.</param>
        /// <param name="e">The event argument for RegionChanged.</param>
        private void OnRegionChanged(object source, NUIApplicationRegionChangedEventArgs e)
        {
            Log.Info("NUI", "NUICorebackend OnRegionChanged Called");
            var handler = Handlers[EventType.RegionFormatChanged] as Action <RegionFormatChangedEventArgs>;

            handler?.Invoke(new RegionFormatChangedEventArgs((source as Application)?.GetRegion()));
        }
        /// <summary>
        /// Region changed event callback function.
        /// </summary>
        /// <param name="source">Application instance</param>
        /// <param name="e">Event argument for RegionChanged</param>
        private void OnRegionChanged(object source, NUIApplicationRegionChangedEventArgs e)
        {
            Log.Debug("NUI", "NUIWatchCorebackend OnRegionChanged Called");
            var handler = Handlers[EventType.RegionFormatChanged] as Action <RegionFormatChangedEventArgs>;

            // Need to make new signal return in native to return right value.
            handler?.Invoke(new RegionFormatChangedEventArgs(""));
        }
Exemple #3
0
 // Callback for Application RegionChangedSignal
 private void OnNUIApplicationRegionChanged(IntPtr data)
 {
     if (_applicationRegionChangedEventHandler != null)
     {
         NUIApplicationRegionChangedEventArgs e = new NUIApplicationRegionChangedEventArgs();
         e.Application = this;
         _applicationRegionChangedEventHandler.Invoke(this, e);
     }
 }
        /// <summary>
        /// The Region changed event callback function.
        /// </summary>
        /// <param name="source">The application instance.</param>
        /// <param name="e">The event argument for RegionChanged.</param>
        private void OnRegionChanged(object source, NUIApplicationRegionChangedEventArgs e)
        {
            var handler = Handlers[EventType.RegionFormatChanged] as Action <RegionFormatChangedEventArgs>;

            handler?.Invoke(new RegionFormatChangedEventArgs(e.Application.GetRegion()));
        }