Beispiel #1
0
        private void DodajZivotinju()
        {
            var          frm = new DodajZivotinju(this.IdOblasti);
            DialogResult dlg = frm.ShowDialog();

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

            DialogResult dlg = frm.ShowDialog();

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