// V Header Links private void dataGridView7_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView7.CurrentCellAddress.X == 4) { tabControl1.SelectedIndex = 1; comboBox6.SelectedIndex = Convert.ToInt32(dataGridView7.CurrentCell.Value); return; } if (dataGridView7.CurrentCellAddress.X == 5 || dataGridView7.CurrentCellAddress.X == 6) { tabControl1.SelectedIndex = 4; comboBox5.SelectedIndex = Convert.ToInt32(dataGridView7.CurrentCell.Value); return; } if (dataGridView7.CurrentCellAddress.X == 7) { tabControl1.SelectedIndex = 3; radioButton15.Checked = true; comboBox3.SelectedIndex = Convert.ToInt32(dataGridView7.CurrentCell.Value); return; } if (dataGridView7.CurrentCellAddress.X == 16) { wildIndex = nameText.IndexOf(dataGridView7.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()); Form4_2 nameEditor = new Form4_2(); nameEditor.ShowDialog(this); dataGridView7.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = nameText[wildIndex]; return; } if (dataGridView7.CurrentCellAddress.X == 21) { mapFlags = Convert.ToInt32(dataGridView7.CurrentCell.Value); Form4 flagEditor = new Form4(); flagEditor.ShowDialog(this); dataGridView7.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = mapFlags; return; } if (dataGridView7.CurrentCellAddress.X == 12) { wildIndex = Convert.ToInt32(dataGridView7.CurrentCell.Value); Form9 wildEditor = new Form9(); wildEditor.ShowDialog(this); } }
// Header Links private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { // DPPt Links if (dataGridView1.CurrentCellAddress.X == 2 && Convert.ToInt32(dataGridView1.CurrentCell.Value) < comboBox12.Items.Count) { comboBox12.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value); return; } if (dataGridView1.CurrentCellAddress.X == 4) { tabControl1.SelectedIndex = 1; comboBox1.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value); return; } if (dataGridView1.CurrentCellAddress.X == 5 || dataGridView1.CurrentCellAddress.X == 6) { tabControl1.SelectedIndex = 4; comboBox5.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value); return; } if (dataGridView1.CurrentCellAddress.X == 7) { tabControl1.SelectedIndex = 3; comboBox3.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value); return; } if (dataGridView1.CurrentCellAddress.X == 10 && (gameID == 0x45414441 || gameID == 0x45415041 || gameID == 0x53414441 || gameID == 0x53415041 || gameID == 0x46414441 || gameID == 0x46415041 || gameID == 0x49414441 || gameID == 0x49415041 || gameID == 0x44414441 || gameID == 0x44415041 || gameID == 0x4A414441 || gameID == 0x4A415041 || gameID == 0x4B414441 || gameID == 0x4B415041 || gameID == 0x45555043 || gameID == 0x53555043 || gameID == 0x46555043 || gameID == 0x49555043 || gameID == 0x44555043 || gameID == 0x4A555043 || gameID == 0x4B555043)) { wildIndex = (int)Convert.ToUInt32(dataGridView1.CurrentCell.Value); Form9 wildEditor = new Form9(); wildEditor.ShowDialog(this); return; } if (dataGridView1.CurrentCellAddress.X == 11 && (gameID == 0x45414441 || gameID == 0x45415041 || gameID == 0x53414441 || gameID == 0x53415041 || gameID == 0x46414441 || gameID == 0x46415041 || gameID == 0x49414441 || gameID == 0x49415041 || gameID == 0x44414441 || gameID == 0x44415041 || gameID == 0x4A414441 || gameID == 0x4A415041 || gameID == 0x4B414441 || gameID == 0x4B415041 || gameID == 0x45555043 || gameID == 0x53555043 || gameID == 0x46555043 || gameID == 0x49555043 || gameID == 0x44555043 || gameID == 0x4A555043 || gameID == 0x4B555043)) { tabControl1.SelectedIndex = 5; comboBox10.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value); return; } if (dataGridView1.CurrentCellAddress.X == 12 && (gameID == 0x45414441 || gameID == 0x45415041 || gameID == 0x53414441 || gameID == 0x53415041 || gameID == 0x46414441 || gameID == 0x46415041 || gameID == 0x49414441 || gameID == 0x49415041 || gameID == 0x44414441 || gameID == 0x44415041 || gameID == 0x4A414441 || gameID == 0x4A415041 || gameID == 0x4B414441 || gameID == 0x4B415041 || gameID == 0x45555043 || gameID == 0x53555043 || gameID == 0x46555043 || gameID == 0x49555043 || gameID == 0x44555043 || gameID == 0x4A555043 || gameID == 0x4B555043)) { wildIndex = nameText.IndexOf(dataGridView1.CurrentCell.Value.ToString()); Form4_2 nameEditor = new Form4_2(); nameEditor.ShowDialog(this); dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = nameText[wildIndex]; return; } if (dataGridView1.CurrentCellAddress.X == 16 && (gameID == 0x45414441 || gameID == 0x45415041 || gameID == 0x53414441 || gameID == 0x53415041 || gameID == 0x46414441 || gameID == 0x46415041 || gameID == 0x49414441 || gameID == 0x49415041 || gameID == 0x44414441 || gameID == 0x44415041 || gameID == 0x4A414441 || gameID == 0x4A415041 || gameID == 0x4B414441 || gameID == 0x4B415041)) { mapFlags = Convert.ToUInt16(dataGridView1.CurrentCell.Value); Form4 flagEditor = new Form4(); flagEditor.ShowDialog(this); dataGridView1.CurrentCell.Value = mapFlags; return; } // Platinum Links if (dataGridView1.CurrentCellAddress.X == 17 && (gameID == 0x45555043 || gameID == 0x53555043 || gameID == 0x46555043 || gameID == 0x49555043 || gameID == 0x44555043 || gameID == 0x4A555043 || gameID == 0x4B555043)) { mapFlags = Convert.ToUInt16(dataGridView1.CurrentCell.Value); Form4 flagEditor = new Form4(); flagEditor.ShowDialog(this); dataGridView1.CurrentCell.Value = mapFlags; return; } // HGSS Links if (dataGridView13.CurrentCellAddress.X == 6) { tabControl1.SelectedIndex = 1; comboBox1.SelectedIndex = Convert.ToInt32(dataGridView13.CurrentCell.Value); return; } if (dataGridView13.CurrentCellAddress.X == 7 || dataGridView13.CurrentCellAddress.X == 8) { tabControl1.SelectedIndex = 4; comboBox5.SelectedIndex = Convert.ToInt32(dataGridView13.CurrentCell.Value); return; } if (dataGridView13.CurrentCellAddress.X == 9) { tabControl1.SelectedIndex = 3; comboBox3.SelectedIndex = Convert.ToInt32(dataGridView13.CurrentCell.Value); return; } if (dataGridView13.CurrentCellAddress.X == 12 && (gameID == 0x454B5049 || gameID == 0x45475049 || gameID == 0x534B5049 || gameID == 0x53475049 || gameID == 0x464B5049 || gameID == 0x46475049 || gameID == 0x494B5049 || gameID == 0x49475049 || gameID == 0x444B5049 || gameID == 0x44475049 || gameID == 0x4A4B5049 || gameID == 0x4A475049 || gameID == 0x4B4B5049 || gameID == 0x4B475049)) { tabControl1.SelectedIndex = 5; comboBox10.SelectedIndex = Convert.ToInt32(dataGridView13.CurrentCell.Value); return; } if (dataGridView13.CurrentCellAddress.X == 13 && (gameID == 0x454B5049 || gameID == 0x45475049 || gameID == 0x534B5049 || gameID == 0x53475049 || gameID == 0x464B5049 || gameID == 0x46475049 || gameID == 0x494B5049 || gameID == 0x49475049 || gameID == 0x444B5049 || gameID == 0x44475049 || gameID == 0x4A4B5049 || gameID == 0x4A475049 || gameID == 0x4B4B5049 || gameID == 0x4B475049)) { wildIndex = nameText.IndexOf(dataGridView13.CurrentCell.Value.ToString()); Form4_2 nameEditor = new Form4_2(); nameEditor.ShowDialog(this); dataGridView13.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = nameText[wildIndex]; return; } if (dataGridView13.CurrentCellAddress.X == 2 && (gameID == 0x454B5049 || gameID == 0x45475049 || gameID == 0x534B5049 || gameID == 0x53475049 || gameID == 0x464B5049 || gameID == 0x46475049 || gameID == 0x494B5049 || gameID == 0x49475049 || gameID == 0x444B5049 || gameID == 0x44475049 || gameID == 0x4A4B5049 || gameID == 0x4A475049 || gameID == 0x4B4B5049 || gameID == 0x4B475049)) { wildIndex = (int)Convert.ToUInt32(dataGridView13.CurrentCell.Value); Form9 wildEditor = new Form9(); wildEditor.ShowDialog(this); return; } if (dataGridView13.CurrentCellAddress.X == 18 && (gameID == 0x454B5049 || gameID == 0x45475049 || gameID == 0x534B5049 || gameID == 0x53475049 || gameID == 0x464B5049 || gameID == 0x46475049 || gameID == 0x494B5049 || gameID == 0x49475049 || gameID == 0x444B5049 || gameID == 0x44475049 || gameID == 0x4A4B5049 || gameID == 0x4A475049 || gameID == 0x4B4B5049 || gameID == 0x4B475049)) { mapFlags = Convert.ToUInt16(dataGridView13.CurrentCell.Value); Form4 flagEditor = new Form4(); flagEditor.ShowDialog(this); dataGridView13.CurrentCell.Value = mapFlags; return; } }