Exemplo n.º 1
0
        // Callback for WidgetView WidgetFaulted signal
        private void OnWidgetFaulted(IntPtr data)
        {
            WidgetViewEventArgs e = new WidgetViewEventArgs();

            if (data != null)
            {
                e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
            }

            if (_widgetFaultedEventHandler != null)
            {
                _widgetFaultedEventHandler(this, e);
            }
        }
Exemplo n.º 2
0
        // Callback for WidgetView WidgetUpdatePeriodChanged signal
        private void OnWidgetUpdatePeriodChanged(IntPtr data)
        {
            WidgetViewEventArgs e = new WidgetViewEventArgs();

            if (data != null)
            {
                e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
            }

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