C# Class AvalonPatch.AvalonPatch

Inheritance: System.Windows.Forms.Form
Show file Open project: ncoH/Avalon

Public Properties

Property Type Description
reader System.Xml.XmlTextReader
tempExtractPath string

Public Methods

Method Description
AvalonPatch ( ) : System
GetEmbeddedFile ( System assembly, string fileName ) : Stream
GetEmbeddedFile ( Type type, string fileName ) : Stream
GetEmbeddedFile ( string assemblyName, string fileName ) : Stream

Extracts an embedded file out of a given assembly.

checkAndCopy ( string destinationPath ) : void
copyDirectory ( string patchSource, string patchDestination ) : void
exitAndCleanup ( ) : void
extractFile ( Stream inFile, Stream outFile ) : void
fillInfo ( string fileName, patchFile pf ) : void
handlePatch ( string patchName, patchFile pf ) : void
installPatch ( patchFile thePatch ) : void
installThePatches ( ) : void
installZip ( patchFile thePatch ) : void
readPatchControl ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AvalonPatch_FormClosing ( object sender, FormClosingEventArgs e ) : void
AvalonPatch_Load ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

btExit_Click ( object sender, EventArgs e ) : void
btInstallPatch_Click ( object sender, EventArgs e ) : void
checkRunningProcess ( ) : bool
clearCacheDir ( ) : void
fileSize ( string fileToCheck ) : long
fileVersion ( string fileToCheck ) : string

Method Details

AvalonPatch() public method

public AvalonPatch ( ) : System
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetEmbeddedFile() public static method

public static GetEmbeddedFile ( System assembly, string fileName ) : Stream
assembly System
fileName string
return Stream

GetEmbeddedFile() public static method

public static GetEmbeddedFile ( Type type, string fileName ) : Stream
type System.Type
fileName string
return Stream

GetEmbeddedFile() public static method

Extracts an embedded file out of a given assembly.
public static GetEmbeddedFile ( string assemblyName, string fileName ) : Stream
assemblyName string The namespace of you assembly.
fileName string The name of the file to extract.
return Stream

checkAndCopy() public method

public checkAndCopy ( string destinationPath ) : void
destinationPath string
return void

copyDirectory() public method

public copyDirectory ( string patchSource, string patchDestination ) : void
patchSource string
patchDestination string
return void

exitAndCleanup() public method

public exitAndCleanup ( ) : void
return void

extractFile() public method

public extractFile ( Stream inFile, Stream outFile ) : void
inFile Stream
outFile Stream
return void

fillInfo() public method

public fillInfo ( string fileName, patchFile pf ) : void
fileName string
pf patchFile
return void

handlePatch() public method

public handlePatch ( string patchName, patchFile pf ) : void
patchName string
pf patchFile
return void

installPatch() public method

public installPatch ( patchFile thePatch ) : void
thePatch patchFile
return void

installThePatches() public method

public installThePatches ( ) : void
return void

installZip() public method

public installZip ( patchFile thePatch ) : void
thePatch patchFile
return void

readPatchControl() public method

public readPatchControl ( ) : void
return void

Property Details

reader public property

public XmlTextReader,System.Xml reader
return System.Xml.XmlTextReader

tempExtractPath public property

public string tempExtractPath
return string