Example #1
0
 private void unosToolStripMenuItem_Click(object sender, EventArgs e)
 {
     UnosForm forma = new UnosForm(textovi);
     DialogResult dr = forma.ShowDialog();
     if (dr == DialogResult.OK) //Ako je korisnik unio novi txt
     {
         lb_txt.Text = ""; //briši labelu
         foreach (string txt in textovi) //prođi kroz listu
             lb_txt.Text += "\n" + txt; //prikaži textr u labeli
     }
 }
Example #2
0
        private void unosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UnosForm     forma = new UnosForm(textovi);
            DialogResult dr    = forma.ShowDialog();

            if (dr == DialogResult.OK)          //Ako je korisnik unio novi txt
            {
                lb_txt.Text = "";               //briši labelu
                foreach (string txt in textovi) //prođi kroz listu
                {
                    lb_txt.Text += "\n" + txt;  //prikaži textr u labeli
                }
            }
        }