C# Class TestME.Utilities

Mostra file Open project: Hli4S/TestMeApp

Public Methods

Method Description
AsyncDB ( bool DebugMe = false ) : DB
Cell_TextChanged ( object sender, System.Windows.Forms.DataGridView dgv, Control e ) : void
FindControl ( Form form, string name ) : Control
InvokeMe ( Control ctrl, MethodInvoker mInvoke ) : void
MD5Hash ( string txt ) : string
clearText ( ) : void
contextMenuEnable ( System.Windows.Forms.DataGridView dgv ) : void
dgvCellEditing ( System.Windows.Forms.DataGridView dgv, string columnName, System.Windows.Forms.DataGridViewEditingControlShowingEventArgs e ) : void
dgvRandomShuffle ( System.Windows.Forms.DataGridView dgv ) : void
dgvRowIntoQuestion ( System.Windows.Forms.DataGridViewRow dgvRow ) : Question
dgvRowMoveUpDown ( System.Windows.Forms.DataGridView dgv, bool moveDown ) : void
notifyThem ( NotificationBox ntfbox, string msg, NotificationBox ntype ) : void
rightClickSelect ( System.Windows.Forms.DataGridView dgv, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void
runInThread ( System.Action func ) : Thread
txtBoxReplaceNewLine ( TextBox txtb ) : void
txtBoxReplaceSpaceNewLine ( TextBox txtb ) : void
txtCustomReplaceSpace ( XylosTextBox txtb ) : void

Private Methods

Method Description
FindControl ( Form form, Control control, string name ) : Control

Method Details

AsyncDB() public static method

public static AsyncDB ( bool DebugMe = false ) : DB
DebugMe bool
return DB

Cell_TextChanged() public static method

public static Cell_TextChanged ( object sender, System.Windows.Forms.DataGridView dgv, Control e ) : void
sender object
dgv System.Windows.Forms.DataGridView
e System.Windows.Forms.Control
return void

FindControl() public static method

public static FindControl ( Form form, string name ) : Control
form System.Windows.Forms.Form
name string
return System.Windows.Forms.Control

InvokeMe() public static method

public static InvokeMe ( Control ctrl, MethodInvoker mInvoke ) : void
ctrl System.Windows.Forms.Control
mInvoke MethodInvoker
return void

MD5Hash() public static method

public static MD5Hash ( string txt ) : string
txt string
return string

clearText() public static method

public static clearText ( ) : void
return void

contextMenuEnable() public static method

public static contextMenuEnable ( System.Windows.Forms.DataGridView dgv ) : void
dgv System.Windows.Forms.DataGridView
return void

dgvCellEditing() public static method

public static dgvCellEditing ( System.Windows.Forms.DataGridView dgv, string columnName, System.Windows.Forms.DataGridViewEditingControlShowingEventArgs e ) : void
dgv System.Windows.Forms.DataGridView
columnName string
e System.Windows.Forms.DataGridViewEditingControlShowingEventArgs
return void

dgvRandomShuffle() public static method

public static dgvRandomShuffle ( System.Windows.Forms.DataGridView dgv ) : void
dgv System.Windows.Forms.DataGridView
return void

dgvRowIntoQuestion() public static method

public static dgvRowIntoQuestion ( System.Windows.Forms.DataGridViewRow dgvRow ) : Question
dgvRow System.Windows.Forms.DataGridViewRow
return Question

dgvRowMoveUpDown() public static method

public static dgvRowMoveUpDown ( System.Windows.Forms.DataGridView dgv, bool moveDown ) : void
dgv System.Windows.Forms.DataGridView
moveDown bool
return void

notifyThem() public static method

public static notifyThem ( NotificationBox ntfbox, string msg, NotificationBox ntype ) : void
ntfbox NotificationBox
msg string
ntype NotificationBox
return void

rightClickSelect() public static method

public static rightClickSelect ( System.Windows.Forms.DataGridView dgv, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void
dgv System.Windows.Forms.DataGridView
e System.Windows.Forms.DataGridViewCellMouseEventArgs
return void

runInThread() public static method

public static runInThread ( System.Action func ) : Thread
func System.Action
return Thread

txtBoxReplaceNewLine() public static method

public static txtBoxReplaceNewLine ( TextBox txtb ) : void
txtb System.Windows.Forms.TextBox
return void

txtBoxReplaceSpaceNewLine() public static method

public static txtBoxReplaceSpaceNewLine ( TextBox txtb ) : void
txtb System.Windows.Forms.TextBox
return void

txtCustomReplaceSpace() public static method

public static txtCustomReplaceSpace ( XylosTextBox txtb ) : void
txtb XylosTextBox
return void