wenku8.Model.Section.ZoneSpider.Reset C# (CSharp) Method

Reset() public method

public Reset ( ) : void
return void
        public void Reset()
        {
            if ( Data != null )
            {
                Data.DisconnectLoaders();
                Data.Clear();
            }

            DataReady = false;
            NotifyChanged( "Data", "DataReady" );
        }

Usage Example

Exemplo n.º 1
0
        public void RemoveZone( ZoneSpider ZS )
        {
            if ( ZS == null ) return;

            try
            {
                Shared.Storage.DeleteFile( ZS.MetaLocation );
            }
            catch ( Exception ) { }

            Worker.UIInvoke( () =>
            {
                Zones.Remove( ZS );
                ZS.Reset();
            } );
        }