C# Class booruReader.Model.BasePost

Inheritance: BaseIObservable
Afficher le fichier Open project: earlnuclear/DanbooruBrowser Class Usage Examples

Méthodes publiques

Свойство Type Description
FileMD string
ImageRating PostRating
PostId string
_height int
_width int

Méthodes publiques

Méthode Description
BasePost ( ) : System
BasePost ( BasePost post, bool isUIImage = false ) : System

Constructor that SHOULD be used for images

SaveImage ( ) : void

This call will try to save the image and report its completion

SaveImage ( string imageLocation ) : void

This save method is invoked from preview screen. We already have full-size image downloaded so just copy it.

_downloadClient_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void

Private Methods

Méthode Description
GetHumanFilename ( string extension ) : string

Returns human readable filename in format of: booru postid tag1 tag2... .extension Function will try adding as many tags as possible until we hit the 256 char limit for filename + folder path. Refer to http://msdn.microsoft.com/en-us/library/ee681827(VS.85).aspx#limits for the filename size limit.

LateFilePath ( object e, AsyncCompletedEventArgs args ) : void
client_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void

Progress callback for updating the image download progressbar

Method Details

BasePost() public méthode

public BasePost ( ) : System
Résultat System

BasePost() public méthode

Constructor that SHOULD be used for images
public BasePost ( BasePost post, bool isUIImage = false ) : System
post BasePost
isUIImage bool
Résultat System

SaveImage() public méthode

This call will try to save the image and report its completion
public SaveImage ( ) : void
Résultat void

SaveImage() public méthode

This save method is invoked from preview screen. We already have full-size image downloaded so just copy it.
public SaveImage ( string imageLocation ) : void
imageLocation string
Résultat void

_downloadClient_DownloadFileCompleted() public méthode

public _downloadClient_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void
sender object
e System.ComponentModel.AsyncCompletedEventArgs
Résultat void

Property Details

FileMD public_oe property

public string FileMD
Résultat string

ImageRating public_oe property

public PostRating ImageRating
Résultat PostRating

PostId public_oe property

public string PostId
Résultat string

_height public_oe property

public int _height
Résultat int

_width public_oe property

public int _width
Résultat int