コード例 #1
0
ファイル: FormMain.cs プロジェクト: xh330786390/XSCP
        private void dgvFF_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 11 && (e.RowIndex == 2 || e.RowIndex == 3))
            {
                FormTendency2 ft = new FormTendency2("分分彩-" + this.dgvFF[0, e.RowIndex].Value.ToString());
                if (e.RowIndex == 2)
                {
                    ft.Tendency = this.befor2FFTendency;
                }
                else
                {
                    ft.Tendency = this.after2FFTendency;
                }
                ft.Show();
            }

            if (e.ColumnIndex == 12 && (e.RowIndex == 2 || e.RowIndex == 3))
            {
                FormTj2 ft = new FormTj2("分分彩-" + this.dgvFF[0, e.RowIndex].Value.ToString());
                if (e.RowIndex == 2)
                {
                    ft.Tendency = this.befor2FFTendency;
                }
                else
                {
                    ft.Tendency = this.after2FFTendency;
                }
                ft.Show();
            }
        }
コード例 #2
0
ファイル: FormMainAll.cs プロジェクト: xh330786390/XSCP
        private void dgvFF_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            if (e.ColumnIndex == 11 && (e.RowIndex == 0 || e.RowIndex == 5))
            {
                FormMaxTendency ft = new FormMaxTendency("分分彩-" + this.dgvFF[0, e.RowIndex].Value.ToString());
                if (e.RowIndex == 0)
                {
                    ft.num1 = 1; ft.num2 = 2;
                }
                else
                {
                    ft.num1 = 4; ft.num2 = 5;
                }
                ft.Show();
            }

            if (e.ColumnIndex == 11 && (e.RowIndex == 1 || e.RowIndex == 4))
            {
                FormTendencyDwd ft = new FormTendencyDwd("分分彩-" + this.dgvFF[0, e.RowIndex].Value.ToString());
                if (e.RowIndex == 1)
                {
                    ft.DwdTendency1 = ((Tendency <Tendency1Model>) this.lt_dwds[0]).Lt_Tendencys;
                    ft.DwdTendency2 = ((Tendency <Tendency1Model>) this.lt_dwds[1]).Lt_Tendencys;
                }
                else
                {
                    ft.DwdTendency1 = ((Tendency <Tendency1Model>) this.lt_dwds[3]).Lt_Tendencys;
                    ft.DwdTendency2 = ((Tendency <Tendency1Model>) this.lt_dwds[4]).Lt_Tendencys;
                }
                ft.Show();
            }

            if (e.ColumnIndex == 11 && (e.RowIndex == 2 || e.RowIndex == 3))
            {
                FormTendency2 ft = new FormTendency2("分分彩-" + this.dgvFF[0, e.RowIndex].Value.ToString());
                if (e.RowIndex == 2)
                {
                    ft.Tendency = this.befor2FFTendency;
                }
                else
                {
                    ft.Tendency = this.after2FFTendency;
                }
                ft.Show();
            }

            if (e.ColumnIndex == 12 && (e.RowIndex == 2 || e.RowIndex == 3))
            {
                FormTj2 ft = new FormTj2("分分彩-" + this.dgvFF[0, e.RowIndex].Value.ToString());
                if (e.RowIndex == 2)
                {
                    ft.Tendency = this.befor2FFTendency;
                }
                else
                {
                    ft.Tendency = this.after2FFTendency;
                }
                ft.LotteryFF = this.lotteryFF;
                ft.Show();
            }

            this.Cursor = null;
        }