예제 #1
0
        private void btn_toBuy_Click(object sender, EventArgs e)
        {
            //买入窗口
            Form_toBuy form_toBuy = new Form_toBuy();

            form_toBuy.ShowDialog();
            //暂停刷新
            pause_Refresh();

            if (form_toBuy.DialogResult == DialogResult.OK)
            {
                start_Refresh();
                LoadData(); //重新加载数据
                //index_Timer_Tick(sender, e);
            }
        }
예제 #2
0
        private void btn_toBuy_Click_code(object sender, EventArgs e)
        {
            if (this.canRightClick == false)
            {
                MessageBox.Show("不可操作!");
                return;
            }
            //买入窗口
            string     code       = this.stock_code.Replace("sh", "");
            Form_toBuy form_toBuy = new Form_toBuy(code);

            form_toBuy.ShowDialog();
            //暂停刷新
            pause_Refresh();

            if (form_toBuy.DialogResult == DialogResult.OK)
            {
                start_Refresh();
                LoadData();//重新加载数据
                //index_Timer_Tick(sender, e);
            }
        }