C# Class LitDev.Utilities

Show file Open project: litdev1/LitDev

Public Properties

Property Type Description
CSV string
CSVplaceHolder string
URL string
bBorder bool
bScreenCapture bool
bShowErrors bool
bShowFileErrors bool
bShowNoShapeErrors bool
bTextWindow bool
formEvents FormEvents
formEventsThread Thread

Public Methods

Method Description
ArrayParse ( string item ) : string
ClearMediaPlayer ( string wavFile ) : void
CreateArrayMap ( Primitive array ) : Primitive
ForegroundHandle ( ) : WinHandle
GWHandle ( ) : WinHandle
GetCurrentMethod ( ) : string
OnError ( string method, Exception ex ) : void
OnFileError ( string method, string fileName ) : void
OnShapeError ( string method, string shapeName ) : void
ReadCSV ( string fileName, bool bTranspose ) : string
ShowFormEvents ( ) : void
TWHandle ( ) : WinHandle
WriteCSV ( string fileName, string array ) : void
captureGW ( ) : System.Drawing.Image
captureWindow ( IntPtr handle ) : System.Drawing.Image
doUpdates ( ) : void
getBitmapFrame ( System.Windows.Controls.Canvas controlToConvert ) : System.Windows.Media.Imaging.BitmapFrame
getByte ( int value ) : byte
getDecimal ( string value ) : Decimal
getDouble ( string value ) : double
getInt ( string value ) : int
getString ( Primitive value ) : string
getWindowResize ( ) : int
getWindowState ( ) : int
getWindowStyle ( ) : int
isBulitin ( Object obj ) : bool
printWindow ( object sender, System.Drawing.Printing.PrintPageEventArgs e ) : void
saveImage ( System.Windows.Media.Imaging.BitmapFrame bitmapFrame, string fileName ) : void
saveImage ( System.Drawing.Image img, string fileName ) : void
setWindowResize ( int iState ) : void
setWindowState ( int iState ) : void
setWindowStyle ( int iStyle ) : void

Private Methods

Method Description
CSVParse ( string item, bool bToCSV ) : string
doUpdates_Delegate ( ) : void

Method Details

ArrayParse() public static method

public static ArrayParse ( string item ) : string
item string
return string

ClearMediaPlayer() public static method

public static ClearMediaPlayer ( string wavFile ) : void
wavFile string
return void

CreateArrayMap() public static method

public static CreateArrayMap ( Primitive array ) : Primitive
array Primitive
return Primitive

ForegroundHandle() public static method

public static ForegroundHandle ( ) : WinHandle
return WinHandle

GWHandle() public static method

public static GWHandle ( ) : WinHandle
return WinHandle

GetCurrentMethod() public static method

public static GetCurrentMethod ( ) : string
return string

OnError() public static method

public static OnError ( string method, Exception ex ) : void
method string
ex System.Exception
return void

OnFileError() public static method

public static OnFileError ( string method, string fileName ) : void
method string
fileName string
return void

OnShapeError() public static method

public static OnShapeError ( string method, string shapeName ) : void
method string
shapeName string
return void

ReadCSV() public static method

public static ReadCSV ( string fileName, bool bTranspose ) : string
fileName string
bTranspose bool
return string

ShowFormEvents() public static method

public static ShowFormEvents ( ) : void
return void

TWHandle() public static method

public static TWHandle ( ) : WinHandle
return WinHandle

WriteCSV() public static method

public static WriteCSV ( string fileName, string array ) : void
fileName string
array string
return void

captureGW() public static method

public static captureGW ( ) : System.Drawing.Image
return System.Drawing.Image

captureWindow() public static method

public static captureWindow ( IntPtr handle ) : System.Drawing.Image
handle System.IntPtr
return System.Drawing.Image

doUpdates() public static method

public static doUpdates ( ) : void
return void

getBitmapFrame() public static method

public static getBitmapFrame ( System.Windows.Controls.Canvas controlToConvert ) : System.Windows.Media.Imaging.BitmapFrame
controlToConvert System.Windows.Controls.Canvas
return System.Windows.Media.Imaging.BitmapFrame

getByte() public static method

public static getByte ( int value ) : byte
value int
return byte

getDecimal() public static method

public static getDecimal ( string value ) : Decimal
value string
return Decimal

getDouble() public static method

public static getDouble ( string value ) : double
value string
return double

getInt() public static method

public static getInt ( string value ) : int
value string
return int

getString() public static method

public static getString ( Primitive value ) : string
value Primitive
return string

getWindowResize() public static method

public static getWindowResize ( ) : int
return int

getWindowState() public static method

public static getWindowState ( ) : int
return int

getWindowStyle() public static method

public static getWindowStyle ( ) : int
return int

isBulitin() public static method

public static isBulitin ( Object obj ) : bool
obj Object
return bool

printWindow() public static method

public static printWindow ( object sender, System.Drawing.Printing.PrintPageEventArgs e ) : void
sender object
e System.Drawing.Printing.PrintPageEventArgs
return void

saveImage() public static method

public static saveImage ( System.Windows.Media.Imaging.BitmapFrame bitmapFrame, string fileName ) : void
bitmapFrame System.Windows.Media.Imaging.BitmapFrame
fileName string
return void

saveImage() public static method

public static saveImage ( System.Drawing.Image img, string fileName ) : void
img System.Drawing.Image
fileName string
return void

setWindowResize() public static method

public static setWindowResize ( int iState ) : void
iState int
return void

setWindowState() public static method

public static setWindowState ( int iState ) : void
iState int
return void

setWindowStyle() public static method

public static setWindowStyle ( int iStyle ) : void
iStyle int
return void

Property Details

CSV public static property

public static string CSV
return string

CSVplaceHolder public static property

public static string CSVplaceHolder
return string

URL public static property

public static string URL
return string

bBorder public static property

public static bool bBorder
return bool

bScreenCapture public static property

public static bool bScreenCapture
return bool

bShowErrors public static property

public static bool bShowErrors
return bool

bShowFileErrors public static property

public static bool bShowFileErrors
return bool

bShowNoShapeErrors public static property

public static bool bShowNoShapeErrors
return bool

bTextWindow public static property

public static bool bTextWindow
return bool

formEvents public static property

public static FormEvents,LitDev formEvents
return FormEvents

formEventsThread public static property

public static Thread formEventsThread
return Thread