Beispiel #1
0
        //Code for initialization, capture completed, image availability events; also setting the source for the viewfinder.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            AppSettings = new AppSettings();

            CurrentPack = AppSettings.CurrentTorchSetSetting;

            var currentPackButton = (Button)FindName(string.Format("Show{0}", CurrentPack.ToString()));

            if (currentPackButton != null)
            {
                ResetBorders(currentPackButton);
            }

            SetSource();

            // Initializes SoundEffects class
            SoundEffects.Initialize();
            SoundEffects.SfxSilence.Play();
        }
Beispiel #2
0
 private void ShowSciFi_Click(object sender, RoutedEventArgs e)
 {
     ResetBorders((Button)sender);
     CurrentPack = TorchPacks.Pack.SciFi;
     SetSource();
 }