C# Class QSProjectsLib.QSMain

Datei anzeigen Open project: QualitySolution/QSProjects Class Usage Examples

Public Properties

Property Type Description
ConnectionString string
DBMS DataProviders
ErrorDlgParrent Gtk.Window
GuiThread Thread
ProjectPermission UserPermission>.Dictionary
ProjectTables TableInfo>.Dictionary
ProviderDB DbProviderFactory
User UserInfo
connectionDB MySqlConnection

Public Methods

Method Description
CheckConnectionAlive ( ) : void
CheckServer ( ) : void
CheckServer ( Gtk.Window parent ) : void

Проверка локали сервера.

DoConnect ( ) : void
DoPing ( ) : void
ErrorMessage ( Exception ex, string userMessage = "" ) : void
ErrorMessage ( Gtk.Window parent, Exception ex, string userMessage = "" ) : void
ErrorMessageWithLog ( Gtk.Window parent, string userMessage, Logger logger, Exception ex, NLog.LogLevel level = null ) : void
ErrorMessageWithLog ( string userMessage, Logger logger, Exception ex, NLog.LogLevel level = null ) : void
GetPermissionFieldsForInsert ( ) : string
GetPermissionFieldsForSelect ( ) : string
GetPermissionFieldsForUpdate ( ) : string
MakeNewStatusTargetForNlog ( ) : void

Регистрируем правила Nlog для строки состояния

MakeNewStatusTargetForNlog ( string methodName, string className ) : void

Регистрируем правила Nlog для строки состояния

RunAboutDialog ( ) : void
RunChangeLogDlg ( Gtk parent ) : void
StatusMessage ( string message ) : void
SubscribeToUnhadledExceptions ( ) : void
TryConnect ( ) : void
WaitRedraw ( ) : void

Private Methods

Method Description
OnOrmDeletion ( string table, int id ) : bool
OnReferenceUpdated ( string Table ) : void
OnStatusBarExposed ( object sender, EventArgs args ) : void
RealErrorMessage ( Window parent, Exception ex, string userMessage = "" ) : void
RealStatusMessage ( string message, bool waitRedraw ) : void
TestConnection ( ) : bool

Method Details

CheckConnectionAlive() public static method

public static CheckConnectionAlive ( ) : void
return void

CheckServer() public static method

public static CheckServer ( ) : void
return void

CheckServer() public static method

Проверка локали сервера.
public static CheckServer ( Gtk.Window parent ) : void
parent Gtk.Window Если Parent = null, сообщение будет выводиться в nlog. В противном случае в диалоговое окно.
return void

DoConnect() public static method

public static DoConnect ( ) : void
return void

DoPing() public static method

public static DoPing ( ) : void
return void

ErrorMessage() public static method

public static ErrorMessage ( Exception ex, string userMessage = "" ) : void
ex System.Exception
userMessage string
return void

ErrorMessage() public static method

public static ErrorMessage ( Gtk.Window parent, Exception ex, string userMessage = "" ) : void
parent Gtk.Window
ex System.Exception
userMessage string
return void

ErrorMessageWithLog() public static method

public static ErrorMessageWithLog ( Gtk.Window parent, string userMessage, Logger logger, Exception ex, NLog.LogLevel level = null ) : void
parent Gtk.Window
userMessage string
logger Logger
ex System.Exception
level NLog.LogLevel
return void

ErrorMessageWithLog() public static method

public static ErrorMessageWithLog ( string userMessage, Logger logger, Exception ex, NLog.LogLevel level = null ) : void
userMessage string
logger Logger
ex System.Exception
level NLog.LogLevel
return void

GetPermissionFieldsForInsert() public static method

public static GetPermissionFieldsForInsert ( ) : string
return string

GetPermissionFieldsForSelect() public static method

public static GetPermissionFieldsForSelect ( ) : string
return string

GetPermissionFieldsForUpdate() public static method

public static GetPermissionFieldsForUpdate ( ) : string
return string

MakeNewStatusTargetForNlog() public static method

Регистрируем правила Nlog для строки состояния
public static MakeNewStatusTargetForNlog ( ) : void
return void

MakeNewStatusTargetForNlog() public static method

Регистрируем правила Nlog для строки состояния
public static MakeNewStatusTargetForNlog ( string methodName, string className ) : void
methodName string Имя статического метода который будет вызываться при появлении сообщения.
className string Имя класа в котором находится метод.
return void

RunAboutDialog() public static method

public static RunAboutDialog ( ) : void
return void

RunChangeLogDlg() public static method

public static RunChangeLogDlg ( Gtk parent ) : void
parent Gtk
return void

StatusMessage() public static method

public static StatusMessage ( string message ) : void
message string
return void

SubscribeToUnhadledExceptions() public static method

public static SubscribeToUnhadledExceptions ( ) : void
return void

TryConnect() public static method

public static TryConnect ( ) : void
return void

WaitRedraw() public static method

public static WaitRedraw ( ) : void
return void

Property Details

ConnectionString public_oe static_oe property

public static string ConnectionString
return string

DBMS public_oe static_oe property

public static DataProviders DBMS
return DataProviders

ErrorDlgParrent public_oe static_oe property

public static Window,Gtk ErrorDlgParrent
return Gtk.Window

GuiThread public_oe static_oe property

public static Thread GuiThread
return Thread

ProjectPermission public_oe static_oe property

public static Dictionary ProjectPermission
return UserPermission>.Dictionary

ProjectTables public_oe static_oe property

public static Dictionary ProjectTables
return TableInfo>.Dictionary

ProviderDB public_oe static_oe property

public static DbProviderFactory ProviderDB
return DbProviderFactory

User public_oe static_oe property

public static UserInfo User
return UserInfo

connectionDB public_oe static_oe property

public static MySqlConnection connectionDB
return MySqlConnection