private void buttonNapraviNovi_Click(object sender, EventArgs e)
        {
            FormNoviIzvestaj f = new FormNoviIzvestaj();

            f.Tip       = 0;
            f.Zivotinja = Zivotinja;
            f.Doktor    = Doktor;

            if (f.ShowDialog() == DialogResult.OK)
            {
                this.PopulateInfos();
            }
        }
Example #2
0
        private void btnPregledaj_Click(object sender, EventArgs e)
        {
            if (Validacija())
            {
                this.Dodaj();

                FormNoviIzvestaj novi = new FormNoviIzvestaj();
                novi.Zivotinja = this.zivotinja;
                novi.Doktor    = this.doktor;
                novi.Tip       = 0;
                if (novi.ShowDialog() == DialogResult.OK)
                {
                    DialogResult = DialogResult.OK;
                    this.Close();
                }
            }
        }