private void toolStripButton5_Click(object sender, EventArgs e) { AddKart form = new AddKart(parent.admin, Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), dataGridView1.SelectedRows[0].Cells[1].Value.ToString(), dataGridView1.SelectedRows[0].Cells[2].Value.ToString(), dataGridView1.SelectedRows[0].Cells[3].Value.ToString()); form.Owner = this; form.ShowDialog(); form.Dispose(); parent.admin.ShowKarts(dataGridView1); }
private void toolStripButton3_Click(object sender, EventArgs e) { AddKart form = new AddKart(parent.admin); form.Owner = this; form.ShowDialog(); form.Dispose(); parent.admin.ShowKarts(dataGridView1); //toolStrip1.Enabled = dataGridView1.Rows.Count > 0; }