C# Class Dumper.Form1

Exibir arquivo Open project: vidar85/USB-Gameboy-Dumper

Public Properties

Property Type Description
MyUsbDevice UsbDevice
MyUsbFinder UsbDeviceFinder
ROM_Title string
UsbDeviceNotifier IDeviceNotifier
actual_length int
banks int
connected bool
debug int
ec ErrorCode
error bool
help int
mode int
nonNumberEntered bool
progressBar1 System.Windows.Forms.ProgressBar
reader UsbEndpointReader
rom_size int
stopwatch Stopwatch
usb_command byte[]
wholeUsbDevice IUsbDevice
writer UsbEndpointWriter

Public Methods

Method Description
ByteArrayToFile ( string _FileName, byte _ByteArray ) : bool
FileToByteArray ( string _FileName ) : byte[]
Form1 ( ) : System
OnDeviceNotifyEvent ( object sender, DeviceNotifyEventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DumpRAM_b_Click ( object sender, EventArgs e ) : void
DumpROM_b_Click ( object sender, EventArgs e ) : void
Form1_KeyDown ( object sender, KeyEventArgs e ) : void
Form1_KeyDown_1 ( object sender, KeyEventArgs e ) : void
Form1_KeyPress ( object sender, KeyPressEventArgs e ) : void
InitializeComponent ( ) : void

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

Scan_b_Click ( object sender, EventArgs e ) : void
Scan_b_KeyDown ( object sender, KeyEventArgs e ) : void
Scan_b_KeyPress ( object sender, KeyPressEventArgs e ) : void
WriteRAM_b_Click ( object sender, EventArgs e ) : void
backgroundWorker1_DoWork ( object sender, DoWorkEventArgs e ) : void
backgroundWorker1_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
backgroundWorker1_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
button1_Click ( object sender, EventArgs e ) : void
button1_Click_1 ( object sender, EventArgs e ) : void
button1_Click_2 ( object sender, EventArgs e ) : void
button2_Click ( object sender, EventArgs e ) : void
saveFileDialogRAM_FileOk ( object sender, CancelEventArgs e ) : void
saveFileDialogROM_FileOk ( object sender, CancelEventArgs e ) : void
setButtons_labels ( ) : void
timer1_Tick ( object sender, EventArgs e ) : void

Method Details

ByteArrayToFile() public method

public ByteArrayToFile ( string _FileName, byte _ByteArray ) : bool
_FileName string
_ByteArray byte
return bool

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

FileToByteArray() public static method

public static FileToByteArray ( string _FileName ) : byte[]
_FileName string
return byte[]

Form1() public method

public Form1 ( ) : System
return System

OnDeviceNotifyEvent() public method

public OnDeviceNotifyEvent ( object sender, DeviceNotifyEventArgs e ) : void
sender object
e DeviceNotifyEventArgs
return void

Property Details

MyUsbDevice public_oe static_oe property

public static UsbDevice MyUsbDevice
return UsbDevice

MyUsbFinder public_oe static_oe property

public static UsbDeviceFinder MyUsbFinder
return UsbDeviceFinder

ROM_Title public_oe static_oe property

public static string ROM_Title
return string

UsbDeviceNotifier public_oe static_oe property

public static IDeviceNotifier UsbDeviceNotifier
return IDeviceNotifier

actual_length public_oe static_oe property

public static int actual_length
return int

banks public_oe static_oe property

public static int banks
return int

connected public_oe static_oe property

public static bool connected
return bool

debug public_oe static_oe property

public static int debug
return int

ec public_oe static_oe property

public static ErrorCode ec
return ErrorCode

error public_oe static_oe property

public static bool error
return bool

help public_oe static_oe property

public static int help
return int

mode public_oe static_oe property

public static int mode
return int

nonNumberEntered public_oe property

public bool nonNumberEntered
return bool

progressBar1 public_oe property

public System.Windows.Forms.ProgressBar progressBar1
return System.Windows.Forms.ProgressBar

reader public_oe static_oe property

public static UsbEndpointReader reader
return UsbEndpointReader

rom_size public_oe static_oe property

public static int rom_size
return int

stopwatch public_oe property

public Stopwatch stopwatch
return Stopwatch

usb_command public_oe static_oe property

public static byte[] usb_command
return byte[]

wholeUsbDevice public_oe static_oe property

public static IUsbDevice wholeUsbDevice
return IUsbDevice

writer public_oe static_oe property

public static UsbEndpointWriter writer
return UsbEndpointWriter