public WindowCluster(ConnectorQuik connect) { InitializeComponent(); timer1 = new System.Windows.Forms.Timer(this.components); timer1.Interval = 50; timer1.Tick += new System.EventHandler(this.timer1_Tick); ChartGl.InitializeContexts(); Chart = new WindowGL(ChartGl, this, timer1, real); Chart.Load(); minVol = Convert.ToInt32(tbVolFilterMin.Text); maxVol = Convert.ToInt32(tbVolFilterMax.Text); ignorTickVol = Convert.ToInt32(tbIgnoreTickVol.Text); secName = cbSecurity.Text; // prevSecName = secName; prevIgnorTickVol = ignorTickVol; TF.frame = TfRange.MIN; TF.digit = 1; TFPrev = TF; connector = connect; connect.Connect(); connector.Event_GetTick += Connector_Event_GetTick; connect.Event_GetTicks += Connect_Event_GetTicks; // fg.GetControl().Anchor = AnchorStyles.Top; // Sec = new DataSeries("RTS-12.15", 10, Exchange.SPBFUT, TimeFrame.Hour, chartStyle.Cluster, ignorTickVol); // WindowGL.Sec = Sec; // if (Form1.Quik.connected) // { // } new Thread(() => { LoadTick(); }).Start(); }
// Соединение с терминалом private void btConnection_Click(object sender, EventArgs e) { connector.Connect(); }