C# Class ME3Explorer.PlotVarDB.PlotVarDB

Mostrar archivo Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Properties

Property Type Description
entries List

Public Methods

Method Description
GetBytes ( string str ) : byte[]
GetString ( byte bytes ) : string
PlotVarDB ( ) : System
ReadBool ( FileStream fs ) : bool
ReadInt ( FileStream fs ) : int
ReadString ( FileStream fs ) : string
RefreshTable ( ) : void
Search ( ) : void
TypeToString ( int type ) : string
WriteString ( FileStream fs, string s ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Verwendete Ressourcen bereinigen.

Private Methods

Method Description
CSVStringToType ( string v ) : int
GameToString ( int game ) : object
InitializeComponent ( ) : void

Erforderliche Methode für die Designerunterstützung. Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.

PlotVarDB_Load ( object sender, EventArgs e ) : void
StringToGame ( string value ) : int
StringToType ( string value ) : int
TypeToCSVType ( int value ) : string
cellClicked ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
commitTable ( ) : void
customSortCompare ( object sender, System.Windows.Forms.DataGridViewSortCompareEventArgs e ) : void
deleteCurrentCell ( ) : void
deleteCurrentRow ( ) : void

Deletes the currently selected row

deleteRowButton_Click ( object sender, EventArgs e ) : void
exportToCSVToolStripMenuItem_Click ( object sender, EventArgs e ) : void
importFromCSVToolStripMenuItem_Click ( object sender, EventArgs e ) : void
loadDatabase ( string fileName ) : void
loadDatabaseToolStripMenuItem_Click ( object sender, EventArgs e ) : void
newDatabaseToolStripMenuItem_Click ( object sender, EventArgs e ) : void
plotVarTable_CellValidating ( object sender, System.Windows.Forms.DataGridViewCellValidatingEventArgs e ) : void
plotVarTable_KeyDown ( object sender, KeyEventArgs e ) : void

Handles the delete key press on a row

readVersion1DB ( FileStream fs ) : List

Reads the old style DB files from Pre-r748. Contains the following columns: ID (as int) Type (as int) Desc (as string) This file format has a different layout than v2 and up.

readVersion2DB ( FileStream fs ) : List

Reads a v2 type DB (r748), by FemShep. Returns list of read entries. Contains the following columns: Plot ID Type (as int) Game (as int) Category1 (as string) Category2 (as string) State/Value (as string) Broken (as bool (stored as byte)) ME2 ID (as int) ME3 ID (as int) Notes (as string)

saveDatabaseToolStripMenuItem_Click ( object sender, EventArgs e ) : void
toolStripButton1_Click ( object sender, EventArgs e ) : void
toolStripTextBox1_KeyPress ( object sender, KeyPressEventArgs e ) : void

Method Details

Dispose() protected method

Verwendete Ressourcen bereinigen.
protected Dispose ( bool disposing ) : void
disposing bool True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.
return void

GetBytes() public method

public GetBytes ( string str ) : byte[]
str string
return byte[]

GetString() public method

public GetString ( byte bytes ) : string
bytes byte
return string

PlotVarDB() public method

public PlotVarDB ( ) : System
return System

ReadBool() public method

public ReadBool ( FileStream fs ) : bool
fs FileStream
return bool

ReadInt() public method

public ReadInt ( FileStream fs ) : int
fs FileStream
return int

ReadString() public method

public ReadString ( FileStream fs ) : string
fs FileStream
return string

RefreshTable() public method

public RefreshTable ( ) : void
return void

Search() public method

public Search ( ) : void
return void

TypeToString() public method

public TypeToString ( int type ) : string
type int
return string

WriteString() public method

public WriteString ( FileStream fs, string s ) : void
fs FileStream
s string
return void

Property Details

entries public_oe property

public List entries
return List