コード例 #1
0
 public RevisionHash(MainForm parent)
 {
     this.LoadRevision();
     this.parent = parent;
 }
コード例 #2
0
 public BaseStreams(MainForm parent)
 {
     this.parent = parent;
     mRevHash = new RevisionHash();
 }
コード例 #3
0
        private object xQueueNotifyLock = new object(); // обьект для блокировки очереди поступивших сигналов

        #endregion Fields

        #region Constructors

        public OrdersThread(BaseStream bs,string host,uint port,string pass,string pgConStr,string shemeIni)
        {
            this.bs = bs;
            this.parent = bs.parent;
            this.m_Host = host;
            this.m_Port = port;
            this.m_Pass = pass;
            m_msgFactory = new CP2BLMessageFactory();
            m_msgFactory.Init(shemeIni,"");

            pgConNotify = new NpgsqlConnection(pgConStr);
            pgConSelect = new NpgsqlConnection(pgConStr);
            pgConUpdate = new NpgsqlConnection(pgConStr);

            this.queueMsg = new OrderedDictionary();
            this.queueNotify = new Hashtable();
            this.queueMsgHist = new OrderedDictionary();

            pgConNotify.Notification += new NotificationEventHandler(conNotify);
            pgConNotify.StateChange += new System.Data.StateChangeEventHandler(this.conStateChanged);

            this.mFutOrders = new Orders.futOrders(this);
            this.mFutChangeClientMoney = new Orders.changeClientMoney(this);
            this.mOptOrders = new Orders.optOrders(this);
            this.mOptChangeExp = new Orders.optChangeExpiration(this);
        }
コード例 #4
0
 public LogExecutionTimeout(MainForm parent, string logPath)
 {
     this.parent = parent;
     this.logPath = logPath+"/Stat/";
 }
コード例 #5
0
ファイル: BasePing.cs プロジェクト: BoiDM/webtrader_gate_foux
 public BasePing(MainForm parent,string pgConStr)
 {
     this.parent = parent;
     this.pgConStr = pgConStr;
     pgCon = new NpgsqlConnection(pgConStr + ";Timeout=5;CommandTimeout=3;");
 }