private void PhoneApplicationPage_Loaded(object sender, System.Windows.RoutedEventArgs e) { if (!_checkState.IsEnabled) { _checkState.Start(); } CoverStoryboard.Begin(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); CoverStoryboard.Begin(); InfoStoryboard.Begin(); if (AppSetting.IsShowTutorial()) { NavigationService.Navigate(new Uri(AppResources.ViewTutorial, UriKind.RelativeOrAbsolute)); } }
private async void PhoneApplicationPage_Loaded(object sender, System.Windows.RoutedEventArgs e) { _tutorial.IsOpen = AppSetting.IsShowTutorial(); //Starting checking if (!_checkState.IsEnabled) { _checkState.Start(); } CoverStoryboard.Begin(); #region Check NetWork State Common.SetStateNetWork(Wifi, WifiState, Model.Wifi.Enabled()); Common.SetStateNetWork(Cellular, CellularState, Model.Cellular.Enabled()); //Common.SetStateNetWork(Bluetooth, BluetoothState, Model.Bluetooth.Enabled().Result); Common.SetStateNetWork(Location, LocationState, Model.Location.Enabled()); Common.SetStateNetWork(Airplane, AirplaneState, Model.Airplane.Enabled()); #endregion if (NavigationContext.QueryString.TryGetValue(Key, out _value)) { if (_value == ShortcutValue.FlashLight) { if (!_cameraIsOn) { _avDevice = await AudioVideoCaptureDevice.OpenAsync(SensorLocation, AudioVideoCaptureDevice.GetAvailableCaptureResolutions(SensorLocation).First()); _cameraIsOn = true; } if (_cameraIsOn) { Common.TurnOnFlashlight(FlashLight, _avDevice, SensorLocation); } } } }
private void StopMusic_Click(object sender, System.Windows.RoutedEventArgs e) { CoverStoryboard.Begin(); Controls.MusicControls.Stop(); }
private void Previous_Click(object sender, System.Windows.RoutedEventArgs e) { CoverStoryboard.Begin(); Controls.MusicControls.Back(); }