private void toolStripButton1_Click(object sender, EventArgs e) { AddTrack form = new AddTrack(parent.admin); form.Owner = this; form.ShowDialog(); form.Dispose(); parent.admin.ShowAllTracks(dataGridView1); }
private void toolStripButton3_Click(object sender, EventArgs e) { if (dataGridView1.GetCellCount(DataGridViewElementStates.Selected) > 0) { AddTrack form = new AddTrack(parent.admin, true, dataGridView1.SelectedRows[0].Cells[0].Value.ToString(), dataGridView1.SelectedRows[0].Cells[1].Value.ToString(), dataGridView1.SelectedRows[0].Cells[3].Value.ToString(), dataGridView1.SelectedRows[0].Cells[2].Value.ToString()); form.Owner = this; form.ShowDialog(); form.Dispose(); parent.admin.ShowAllTracks(dataGridView1); } }