public void AddHqForm(string code) { for (int i = 0; i < hqForm.Count; i++) { if (hqForm[i].Zqdm == code) { if (!hqForm[i].Visible) { hqForm[i].Visible = true; hqForm[i].Show(this.dockPanel1); } hqForm[i].Focus(); return; } } Program.accountDataSet.参数.SetParaValue("证券代码" + this.hqForm.Count, code); var newHq = new HqForm(this.hqForm.Count, this); this.hqForm.Add(newHq); newHq.Show(this.dockPanel1); Program.accountDataSet.参数.SetParaValue("报价窗口数目", this.hqForm.Count + ""); this.hqFormCount = this.hqForm.Count; }
public void SalePublicStock(AASClient.Model.PublicStock stock) { var hqForm = new HqForm(this.hqFormCount + this.hqFormPublicStock.Count, this); hqFormPublicStock.Add(hqForm); hqForm.PossessPublicStock(stock); hqForm.Show(this.dockPanel1); }