private async void ToasterFinder_ToasterFound(object sender, ToasterFoundEventArgs args)
        {
            toasterClient = new ToasterClient(args.Consumer);

            toasterClient.Consumer.DarknessLevelChanged += Consumer_DarknessLevelChanged;
            toasterClient.Consumer.Signals.ToastBurntReceived += Signals_ToastBurntReceived;

            string versionText = toasterClient.ToasterVersion.ToString();

            await dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
            {
                EnableUI(versionText);
            });

            UpdateSliderValue();
        }
Beispiel #2
0
        private async void ToasterFinder_ToasterFound(object sender, ToasterFoundEventArgs args)
        {
            toasterClient = new ToasterClient(args.Consumer);

            toasterClient.Consumer.DarknessLevelChanged       += Consumer_DarknessLevelChanged;
            toasterClient.Consumer.Signals.ToastBurntReceived += Signals_ToastBurntReceived;

            string versionText = toasterClient.ToasterVersion.ToString();

            await dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
            {
                EnableUI(versionText);
            });

            UpdateSliderValue();
        }