Exemple #1
0
        private void DodajRadnika()
        {
            var frm = new DodajRadnika(this.IdOblasti, this.TipZastite);

            DialogResult dlg = frm.ShowDialog();

            if (dlg == System.Windows.Forms.DialogResult.OK)
            {
                this.prikaziPodatke();
            }
        }
Exemple #2
0
        private void IzmeniRadnika()
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                return;
            }
            int          indeks = dataGridView1.SelectedRows[0].Index;
            var          frm    = new DodajRadnika(this.IdOblasti, this.TipZastite, Int32.Parse(dataGridView1[0, indeks].Value.ToString()));
            DialogResult dlg    = frm.ShowDialog();

            if (dlg == System.Windows.Forms.DialogResult.OK)
            {
                this.prikaziPodatke();
            }
        }