public DSClass(MainForm parent) { this.parent = parent; this.connectionDO = new DSSERVERLib.ConnectionDO(); this.connectionDO.IniFile = @".\Online.ini"; this.connectionDO.DSConnected += new DSSERVERLib._IConnectionDOEvents_DSConnectedEventHandler(this.connectionDO_DSConnected); this.connectionDO.DSDisconnected += new DSSERVERLib._IConnectionDOEvents_DSDisconnectedEventHandler(this.connectionDO_DSDisconnected); this.connectionDO.LoginFailed += new DSSERVERLib._IConnectionDOEvents_LoginFailedEventHandler(this.connectionDO_LoginFailed); this.connectionDO.LoginOk += new DSSERVERLib._IConnectionDOEvents_LoginOkEventHandler(this.connectionDO_LoginOk); this.connectionDO.NetIntegrityLost += new DSSERVERLib._IConnectionDOEvents_NetIntegrityLostEventHandler(this.connectionDO_NetIntegrityLost); this.connectionDO.NetIntegrityOk += new DSSERVERLib._IConnectionDOEvents_NetIntegrityOkEventHandler(this.connectionDO_NetIntegrityOk); this.connectionDO.WatchdogTimeSynch += new DSSERVERLib._IConnectionDOEvents_WatchdogTimeSynchEventHandler(this.connectionDO_WatchdogTimeSynch); this.schemeDo = new DSSERVERLib.SchemeDO(); this.schemeDo.SchemeCompleted += new DSSERVERLib._ISchemeEvents_SchemeCompletedEventHandler(this.schemeDo_SchemeCompleted); this.schemeDo.FoundTable += new DSSERVERLib._ISchemeEvents_FoundTableEventHandler(schemeDo_FoundTable); this.schemeDo.FoundColumn += new DSSERVERLib._ISchemeEvents_FoundColumnEventHandler(schemeDo_FoundColumn); this.schemeDo.Error += new DSSERVERLib._ISchemeEvents_ErrorEventHandler(schemeDo_Error); }
private object xQueueNotifyLock = new object(); // обьект для блокировки очереди поступивших сигналов #endregion Fields #region Constructors public OrdersThread(DSClass parentDS,MainForm parent) { this.parent = parent; this.parentDS = parentDS; pgConNotify = new NpgsqlConnection(this.parent.strConn); pgConSelect = new NpgsqlConnection(this.parent.strConn); pgConUpdate = new NpgsqlConnection(this.parent.strConn); this.queueMsg = new OrderedDictionary(); this.queueNotify = new Hashtable(); this.queueMsgHist = new OrderedDictionary(); pgConNotify.Notification += new NotificationEventHandler(conNotify); this.mSpotOrders = new Orders.spotOrders(this); }
public RevisionHash(MainForm parent) { this.LoadRevision(); this.parent = parent; }
public Log(MainForm parent, string logPath) { this.parent = parent; this.logPath = logPath + "/Logs/"; }