C# Class Library.Util

Show file Open project: tjdbcourse/tjdbcourse

Public Methods

Method Description
GetTableName ( System.Windows.Forms.DataGridView view ) : string
MD5 ( string str ) : string
RemoveGridRow ( System.Windows.Forms.DataGridView view, System.Windows.Forms.DataGridViewRowCancelEventArgs e ) : bool
TrimAllGridCells ( System.Windows.Forms.DataGridView view ) : void
TrimGridCell ( System.Windows.Forms.DataGridView view, int row, int col ) : void
UpdateGridCell ( System.Windows.Forms.DataGridView view, int row, int col ) : void
UpdateGridCellForBook ( System.Windows.Forms.DataGridView view, string tableName, int row, int col ) : void
ValidateFloatInput ( string input, string desc ) : bool
ValidateIntegerInput ( string input, string desc ) : bool
ValidateStringInput ( string input, string desc, int maxlen ) : bool

Method Details

GetTableName() public static method

public static GetTableName ( System.Windows.Forms.DataGridView view ) : string
view System.Windows.Forms.DataGridView
return string

MD5() public static method

public static MD5 ( string str ) : string
str string
return string

RemoveGridRow() public static method

public static RemoveGridRow ( System.Windows.Forms.DataGridView view, System.Windows.Forms.DataGridViewRowCancelEventArgs e ) : bool
view System.Windows.Forms.DataGridView
e System.Windows.Forms.DataGridViewRowCancelEventArgs
return bool

TrimAllGridCells() public static method

public static TrimAllGridCells ( System.Windows.Forms.DataGridView view ) : void
view System.Windows.Forms.DataGridView
return void

TrimGridCell() public static method

public static TrimGridCell ( System.Windows.Forms.DataGridView view, int row, int col ) : void
view System.Windows.Forms.DataGridView
row int
col int
return void

UpdateGridCell() public static method

public static UpdateGridCell ( System.Windows.Forms.DataGridView view, int row, int col ) : void
view System.Windows.Forms.DataGridView
row int
col int
return void

UpdateGridCellForBook() public static method

public static UpdateGridCellForBook ( System.Windows.Forms.DataGridView view, string tableName, int row, int col ) : void
view System.Windows.Forms.DataGridView
tableName string
row int
col int
return void

ValidateFloatInput() public static method

public static ValidateFloatInput ( string input, string desc ) : bool
input string
desc string
return bool

ValidateIntegerInput() public static method

public static ValidateIntegerInput ( string input, string desc ) : bool
input string
desc string
return bool

ValidateStringInput() public static method

public static ValidateStringInput ( string input, string desc, int maxlen ) : bool
input string
desc string
maxlen int
return bool