C# 클래스 Examples.ExamplesFileTransfer.WPF.ReceivedFile

A local class which can be used to populate the WPF list box
상속: INotifyPropertyChanged
파일 보기 프로젝트 열기: MarcFletcher/NetworkComms.Net 1 사용 예제들

공개 메소드들

메소드 설명
AddData ( long dataStart, int bufferStart, int bufferLength, byte buffer ) : void

Add data to file

Close ( ) : void

Closes and releases any resources maintained by this file

ReceivedFile ( string filename, ConnectionInfo sourceInfo, long sizeBytes ) : System

Create a new ReceivedFile

SaveFileToDisk ( string saveLocation ) : void

Saves the completed file to the provided saveLocation

비공개 메소드들

메소드 설명
NotifyPropertyChanged ( string propertyName = "" ) : void

Triggers a GUI update on a property change

메소드 상세

AddData() 공개 메소드

Add data to file
public AddData ( long dataStart, int bufferStart, int bufferLength, byte buffer ) : void
dataStart long Where to start writing this data to the internal memoryStream
bufferStart int Where to start copying data from buffer
bufferLength int The number of bytes to copy from buffer
buffer byte Buffer containing data to add
리턴 void

Close() 공개 메소드

Closes and releases any resources maintained by this file
public Close ( ) : void
리턴 void

ReceivedFile() 공개 메소드

Create a new ReceivedFile
public ReceivedFile ( string filename, ConnectionInfo sourceInfo, long sizeBytes ) : System
filename string Filename associated with this file
sourceInfo ConnectionInfo ConnectionInfo corresponding with the file source
sizeBytes long The total size in bytes of this file
리턴 System

SaveFileToDisk() 공개 메소드

Saves the completed file to the provided saveLocation
public SaveFileToDisk ( string saveLocation ) : void
saveLocation string Location to save file
리턴 void