private void Window_Closing(object sender, CancelEventArgs e) { try { UltimaCommand.Stop.Execute(null, null); if (VlcPlayer.Inititalized) { VlcPlayer.Uninitialize(); } // Save filter to isolated storage if (_Filter != null) { using (FileStream stream = File.Create(_DefaultFilter)) { _Filter.Save(stream); } } } catch { // No sense in doing anything } }
private void Window_Closing(object sender, CancelEventArgs e) { try { if (VlcPlayer.Inititalized) { VlcPlayer.Uninitialize(); } // Save filter to isolated storage if (_Filter != null) { using (IsolatedStorageFile storage = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain, null, null)) { using (IsolatedStorageFileStream stream = storage.CreateFile(_DefaultFilter)) { _Filter.Save(stream); } } } } catch { // No sense in doing anything } }