//public event EventHandler vehicleChange; public DBTableWatcher(App.WindownApplication _app) { app = _app; ImmediateNotificationRegister <object> .StartMonitor(conForWatchTable); CanRequestNotifications(); }
public void initStart() { PortStationNotification = new ImmediateNotificationRegister <APORTSTATION>(conForWatchTable, app.PortStationDao.getQueryAllSQL(conForWatchTable)); PortStationNotification.OnChanged += NotificationPositionStationOnChanged; UserNotification = new ImmediateNotificationRegister <UASUSR>(conForWatchTable, app.UserDao.getQueryAllSQL(conForWatchTable)); UserNotification.OnChanged += NotificationUserOnChanged; UserGroupNotification = new ImmediateNotificationRegister <UASUSRGRP>(conForWatchTable, app.UserGroupDao.getQueryAllSQL(conForWatchTable)); UserGroupNotification.OnChanged += NotificationUserGroupOnChanged; UserGroupFuncNotification = new ImmediateNotificationRegister <UASUFNC>(conForWatchTable, app.UserFuncDao.getQueryAllSQL(conForWatchTable)); UserGroupFuncNotification.OnChanged += NotificationUserGroupFuncOnChanged; OHTCCommandNotification = new ImmediateNotificationRegister <ACMD_OHTC>(conForWatchTable, app.CMD_OHTCDao.getQueryAllSQL(conForWatchTable)); OHTCCommandNotification.OnChanged += NotificationVMCSCMDOnChanged; MCSCommandNotification = new ImmediateNotificationRegister <ACMD_MCS>(conForWatchTable, app.CMD_MCSDao.getQueryAllSQL(conForWatchTable)); MCSCommandNotification.OnChanged += NotificationVMCSCMDOnChanged; SegmentNotification = new ImmediateNotificationRegister <ASEGMENT>(conForWatchTable, app.SegmentDao.getQueryAllSQL(conForWatchTable)); SegmentNotification.OnChanged += NotificationSegmentOnChanged; //AVEHICLENotification = new ImmediateNotificationRegister<AVEHICLE>(conForWatchTable, app.VehicleDao.getQueryAllSQL(conForWatchTable)); //AVEHICLENotification.OnChanged += NotificationAVEHICLEOnChanged; //UserGroupNotification = new ImmediateNotificationRegister<UASUSRGRP>(conForWatchTable, app.UserGroupDao.getQueryAllSQL(conForWatchTable)); //UserGroupNotification.OnChanged += NotificationUserGroupOnChanged; }