Пример #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);
     }
 }
Пример #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);
     }
 }