Beispiel #1
0
        private void buttonPotvrdi_Click(object sender, EventArgs e)
        {
            PredmetForm f = new PredmetForm(null, null);

            f.ShowDialog();
            f.Dispose();
        }
Beispiel #2
0
        public void EditData()
        {
            PredmetForm f = new PredmetForm(GuiObject, GuiObject.SmerPredmeta);

            f.ShowDialog();
            f.Dispose();
        }
Beispiel #3
0
        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();
        }
Beispiel #4
0
        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();
        }