Exemplo n.º 1
0
 private void btnAddDrzava_Click(object sender, EventArgs e)
 {
     try
     {
         DrzavaForm form = new DrzavaForm(null);
         if (form.ShowDialog() == DialogResult.OK)
         {
             Drzava d = (Drzava)form.Entity;
             drzave.Add(d);
             drzave.Sort();
             setDrzave(drzave);
             SelectedDrzava = d;
         }
     }
     catch (InfrastructureException ex)
     {
         MessageDialogs.showError(ex.Message, this.Text);
     }
 }
Exemplo n.º 2
0
 private void btnAddDrzava_Click(object sender, EventArgs e)
 {
     try
     {
         DrzavaForm form = new DrzavaForm(null);
         if (form.ShowDialog() == DialogResult.OK)
         {
             Drzava d = (Drzava)form.Entity;
             drzave.Add(d);
             drzave.Sort();
             setDrzave(drzave);
             SelectedDrzava = d;
         }
     }
     catch (InfrastructureException ex)
     {
         MessageDialogs.showError(ex.Message, this.Text);
     }
 }