private void btnVrati_Click(object sender, EventArgs e) { int rowindex = dataGridView4.CurrentCell.RowIndex; preuzmiAutomobil novi = new preuzmiAutomobil(2, (int.Parse(dataGridView4.Rows[rowindex].Cells[8].FormattedValue.ToString()))); novi.ShowDialog(); init(); initTab3(); }
private void btnPreuzmi_Click(object sender, EventArgs e) { preuzmiAutomobil forma = new preuzmiAutomobil(1, nesto); forma.ShowDialog(); init(); initTab3(); btnPreuzmi.Enabled = false; }