コード例 #1
0
        /// <summary>
        /// Initializes the singleton Application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            InitializeComponent();
            Suspending += OnSuspending;

            MobileServices     = new MobileServices();
            RepositoryServices = new RepositoryServices();
        }
コード例 #2
0
ファイル: AudioHelper.cs プロジェクト: cwaldron/CafeSamples
        public static void ToggleEngine()
        {
            var audioPlayer = MobileServices.Resolve <IAudioService>();

            audioPlayer.ToggleEngine();
        }
コード例 #3
0
ファイル: AudioHelper.cs プロジェクト: cwaldron/CafeSamples
        public static void AdjustVolume(double volume)
        {
            var audioPlayer = MobileServices.Resolve <IAudioService>();

            audioPlayer.AdjustVolume(volume);
        }
コード例 #4
0
ファイル: MobileViewModel.cs プロジェクト: no10pc/baibao
        void client_getMobileCodeInfoCompleted(object sender, MobileServices.getMobileCodeInfoCompletedEventArgs e)
        {
            string resault = e.Result as string;
            Location = StringFormat(resault);

            isoManager.WriteFile(_mobileNumber.Substring(0, 7), Location);
            logoUpdate();
        }