C# Class TI.Toolbox.MsgBox

显示文件 Open project: x893/BTool Class Usage Examples

Public Methods

Method Description
GetConsoleMode ( ) : bool
GetLoggingMode ( ) : bool
GetMsgBoxDisplayed ( ) : bool
SetConsoleMode ( bool newConsoleMode ) : bool
SetLoggingMode ( bool newLoggingMode ) : bool
UserMsgBox ( Form owner, MsgBox msgType, MsgBox msgButtons, MsgBox defaultMsgResult, string msg ) : MsgBox.MsgResult
UserMsgBox ( MsgTypes msgType, MsgButtons msgButtons, MsgResult defaultMsgResult, string msg ) : MsgBox.MsgResult
UserMsgBox ( Form owner, MsgTypes msgType, string msg ) : void
UserMsgBox ( MsgBox msgType, string msg ) : void

Private Methods

Method Description
GetMsgBoxTitle ( MsgBox msgType ) : string
GetMsgTypeStr ( MsgBox msgType ) : string
MsgBox ( ) : System
WriteLogMsg ( MsgBox msgType, string msg ) : bool

Method Details

GetConsoleMode() public static method

public static GetConsoleMode ( ) : bool
return bool

GetLoggingMode() public static method

public static GetLoggingMode ( ) : bool
return bool

GetMsgBoxDisplayed() public static method

public static GetMsgBoxDisplayed ( ) : bool
return bool

SetConsoleMode() public static method

public static SetConsoleMode ( bool newConsoleMode ) : bool
newConsoleMode bool
return bool

SetLoggingMode() public static method

public static SetLoggingMode ( bool newLoggingMode ) : bool
newLoggingMode bool
return bool

UserMsgBox() public method

public UserMsgBox ( Form owner, MsgBox msgType, MsgBox msgButtons, MsgBox defaultMsgResult, string msg ) : MsgBox.MsgResult
owner System.Windows.Forms.Form
msgType MsgBox
msgButtons MsgBox
defaultMsgResult MsgBox
msg string
return MsgBox.MsgResult

UserMsgBox() public method

public UserMsgBox ( MsgTypes msgType, MsgButtons msgButtons, MsgResult defaultMsgResult, string msg ) : MsgBox.MsgResult
msgType MsgTypes
msgButtons MsgButtons
defaultMsgResult MsgResult
msg string
return MsgBox.MsgResult

UserMsgBox() public method

public UserMsgBox ( Form owner, MsgTypes msgType, string msg ) : void
owner System.Windows.Forms.Form
msgType MsgTypes
msg string
return void

UserMsgBox() public method

public UserMsgBox ( MsgBox msgType, string msg ) : void
msgType MsgBox
msg string
return void