Exemplo n.º 1
0
        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
            }
        }
Exemplo n.º 2
0
        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
            }
        }