Exemplo n.º 1
0
        public static void OnCleared(ServerDbs primarytable, string subfile, BaseDb db)
        {
            DbEventHandler handler = Cleared;

            if (handler != null)
            {
                handler(null, primarytable, subfile, db);
            }
        }
Exemplo n.º 2
0
        public static void OnStoppedLoading(ServerDbs primarytable, string subfile, BaseDb db)
        {
            DbEventHandler handler = StoppedLoading;

            if (handler != null)
            {
                handler(null, primarytable, subfile, db);
            }
        }
Exemplo n.º 3
0
        public static void OnExceptionThrown(ServerDbs primarytable, string subfile, BaseDb db)
        {
            DbEventHandler handler = ExceptionThrown;

            if (handler != null)
            {
                handler(null, primarytable, subfile, db);
            }
        }
Exemplo n.º 4
0
 private void TriggerDbEvent(object executor, DbEventHandler targetHandler)
 {
     DbEventArgs args = new DbEventArgs(); //DbConnectionManager.GetEventArgsType(name);
     args.Executor = executor;
     targetHandler(this, args);     // 触发外部事件
 }