private void buttonNovi_Click(object sender, EventArgs e)
 {
     NoviAutomobil na = new NoviAutomobil();
     DialogResult rez = na.ShowDialog();
     //unos novog automobila u listbox
     if (rez == System.Windows.Forms.DialogResult.OK)
         listBoxAutomobili.Items.Add(na.Automobil1.ToString());
 }
Ejemplo n.º 2
0
        private void buttonNovi_Click(object sender, EventArgs e)
        {
            NoviAutomobil na  = new NoviAutomobil();
            DialogResult  rez = na.ShowDialog();

            //unos novog automobila u listbox
            if (rez == System.Windows.Forms.DialogResult.OK)
            {
                listBoxAutomobili.Items.Add(na.Automobil1.ToString());
            }
        }