//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(); }
private void ShowSciFi_Click(object sender, RoutedEventArgs e) { ResetBorders((Button)sender); CurrentPack = TorchPacks.Pack.SciFi; SetSource(); }