예제 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     frmUnosStudenta frm = new frmUnosStudenta();
     DialogResult rez = frm.ShowDialog();
     //unos novog studenta u list box
     if (rez == System.Windows.Forms.DialogResult.OK)
         listBoxStudenti.Items.Add(frm.Student1.ToString());
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmUnosStudenta frm = new frmUnosStudenta();
            DialogResult    rez = frm.ShowDialog();

            //unos novog studenta u list box
            if (rez == System.Windows.Forms.DialogResult.OK)
            {
                listBoxStudenti.Items.Add(frm.Student1.ToString());
            }
        }