protected void initialDataReceiver() { if (object.Equals(null, secInfo)) { throw new Exception("StockCode Not Set"); } else { this.dataReceiver = DataReceiver.AddDataReceiver(this.secInfo, this.policyguid, this.isReal);// DataMonitor.AddDataReceiver(this.stockCode, this.PolicyGuid, this.isReal); this.dataReceiver.Data_Arrival += dataReceiver_Data_Arrival; start = true; } }
public void Start() { this.dataReceiver = DataReceiver.AddDataReceiver(this.secInfo, this.policyguid, this.isReal);// DataMonitor.AddDataReceiver(this.stockCode, this.PolicyGuid, this.isReal); this.dataReceiver.Data_Arrival += dataReceiver_Data_Arrival; start = true; }