C# 클래스 booruReader.Model.BasePost

상속: BaseIObservable
파일 보기 프로젝트 열기: earlnuclear/DanbooruBrowser 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FileMD string
ImageRating PostRating
PostId string
_height int
_width int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

BasePost() 공개 메소드

public BasePost ( ) : System
리턴 System

BasePost() 공개 메소드

Constructor that SHOULD be used for images
public BasePost ( BasePost post, bool isUIImage = false ) : System
post BasePost
isUIImage bool
리턴 System

SaveImage() 공개 메소드

This call will try to save the image and report its completion
public SaveImage ( ) : void
리턴 void

SaveImage() 공개 메소드

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
리턴 void

_downloadClient_DownloadFileCompleted() 공개 메소드

public _downloadClient_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void
sender object
e System.ComponentModel.AsyncCompletedEventArgs
리턴 void

프로퍼티 상세

FileMD 공개적으로 프로퍼티

public string FileMD
리턴 string

ImageRating 공개적으로 프로퍼티

public PostRating ImageRating
리턴 PostRating

PostId 공개적으로 프로퍼티

public string PostId
리턴 string

_height 공개적으로 프로퍼티

public int _height
리턴 int

_width 공개적으로 프로퍼티

public int _width
리턴 int