private void buttonPotvrdi_Click(object sender, EventArgs e) { PredmetForm f = new PredmetForm(null, null); f.ShowDialog(); f.Dispose(); }
public void EditData() { PredmetForm f = new PredmetForm(GuiObject, GuiObject.SmerPredmeta); f.ShowDialog(); f.Dispose(); }
private void buttonDodajPredmet_Click(object sender, EventArgs e) { smer.ID = textBoxID.Text; PredmetForm pf = new PredmetForm(null, smer); pf.ShowDialog(); if (pf.DialogResult == DialogResult.OK) { listBoxPredmeti.Items.Add(pf.GetAction().getGUIObject()); } pf.Dispose(); }
private void Izmeni_Click(object sender, EventArgs e) { int index = dataGridView1.CurrentCell.RowIndex; DataGridViewRow selectedRow = dataGridView1.Rows[index]; string id = selectedRow.Cells[0].Value.ToString(); System.Diagnostics.Debug.WriteLine(id); Predmet predmet = DataManger.getPredmetByID(id); PredmetForm f = new PredmetForm(predmet, predmet.SmerPredmeta); f.ShowDialog(); f.Dispose(); }