Beispiel #1
0
        private void OnRegionChanged(IntPtr widgetApplication)
        {
            WidgetApplicationEventArgs e = new WidgetApplicationEventArgs();

            if (widgetApplication != null)
            {
                e.WidgetApplication = WidgetApplication.GetWidgetApplicationFromPtr(widgetApplication);
            }

            if (_regionChangedEventHandler != null)
            {
                _regionChangedEventHandler(this, e);
            }
        }
Beispiel #2
0
        private void OnMemoryLow(IntPtr widgetApplication)
        {
            WidgetApplicationEventArgs e = new WidgetApplicationEventArgs();

            if (widgetApplication != null)
            {
                e.WidgetApplication = WidgetApplication.GetWidgetApplicationFromPtr(widgetApplication);
            }

            if (_memoryLowEventHandler != null)
            {
                _memoryLowEventHandler(this, e);
            }
        }
Beispiel #3
0
        private void OnTerminate(IntPtr widgetApplication)
        {
            WidgetApplicationEventArgs e = new WidgetApplicationEventArgs();

            if (widgetApplication != null)
            {
                e.WidgetApplication = WidgetApplication.GetWidgetApplicationFromPtr(widgetApplication);
            }

            if (_terminateEventHandler != null)
            {
                _terminateEventHandler(this, e);
            }
        }