示例#1
0
        /// <summary>
        /// 摘牌显示交易对手
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OutBrandCellMouseMove_Oppo(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.ColumnIndex < 0 || e.RowIndex < 0)
            {
                return;
            }
            //交易对手列
            if (e.ColumnIndex == 10)
            {
                object o = this.dataGridView_OutBrand.Rows[e.RowIndex].DataBoundItem;

                Transaction dataInfo = this.dataGridView_OutBrand.Rows[e.RowIndex].DataBoundItem as Transaction;
                if (dataInfo == null)
                {
                    return;
                }
                if (form != null)
                {
                    return;
                }

                form = new ImformationTips();
                form.Initialize(dataInfo);
                form.StartPosition = FormStartPosition.Manual;
                form.Location      = new Point(Cursor.Position.X - form.Width, Cursor.Position.Y);
                form.Show();
            }
        }
示例#2
0
        private void OutBrandCellMouseLeave_Oppo(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex < 0 || e.RowIndex < 0)
            {
                return;
            }

            //交易对手列
            if (e.ColumnIndex == 10 && form != null)
            {
                form.Close();
                form = null;
            }
        }
示例#3
0
        private void TradedCellMouseLeave_Imformation(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex < 0 || e.RowIndex < 0)
            {
                return;
            }

            //交易对手列
            if (e.ColumnIndex == 9 && form != null)
            {
                form.Close();
                form = null;
            }
        }