Пример #1
0
        private async void TimerStarter()
        {
            SosPageText += "Timer Started \n";
            RaisePropertyChanged(()=>SosPageText);
            var timer = new DispatcherTimer();
            timer.Interval = TimeSpan.FromSeconds(300);
            timer.Tick += timer_Tick;
            timer.Start();

            if (!ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
                return;
            var spineClass = new SpineClass();
            spineClass.InitializeCallingInfoAsync();
            
        }
Пример #2
0
        private static void SpineInitializer()
        {
            if (!Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
                return;
            try
            {
                var spineClass = new SpineClass();
                spineClass.InitializeCallingInfoAsync();

            }
            catch (Exception e1)
            {
                Debug.WriteLine(e1);
            }
        }