private void dgvFF_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 11 && (e.RowIndex == 2 || e.RowIndex == 3)) { FormTendency ft = new FormTendency("分分彩-" + this.dgvFF[0, e.RowIndex].Value.ToString()); if (e.RowIndex == 2) { ft.Tendency = this.beforFFTendency; } else { ft.Tendency = this.afterFFTendency; } ft.Show(); } if (e.ColumnIndex == 12 && (e.RowIndex == 2 || e.RowIndex == 3)) { FormTj ft = new FormTj("分分彩-" + this.dgv3D[0, e.RowIndex].Value.ToString()); if (e.RowIndex == 2) { ft.Tendency = this.beforFFTendency; } else { ft.Tendency = this.afterFFTendency; } ft.Show(); } }
private void dgvFF_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex == 2 || e.RowIndex == 3) { if (e.ColumnIndex == 11) { FormTendency ft = new FormTendency("分分彩-" + this.dgvFF[0, e.RowIndex].Value.ToString()); if (e.RowIndex == 2) { ft.Tendency = this.beforFFTendency; } else { ft.Tendency = this.afterFFTendency; } ft.Show(); } if (e.ColumnIndex == 12) { FormTj ft = new FormTj("分分彩-" + this.dgvFF[0, e.RowIndex].Value.ToString()); if (e.RowIndex == 2) { ft.Tendency = this.beforFFTendency; } else { ft.Tendency = this.afterFFTendency; } ft.Show(); } } 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 = DwdFFTendency1; ft.DwdTendency2 = DwdFFTendency2; } else { ft.DwdTendency1 = DwdFFTendency4; ft.DwdTendency2 = DwdFFTendency5; } ft.Show(); } }