Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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);
        }