Ejemplo n.º 1
0
 public Form2(List <Uczestnik> ls, int ind, Action action)
 {
     InitializeComponent();
     this.ls  = ls;
     this.ind = ind;
     this.uc  = ls[ind];
     this.tsk = new Task(action);
     showRecord();
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     ls[ind] = new Uczestnik(textBox1.Text, textBox2.Text, textBox3.Text, numericUpDown1.Value);
     tsk.RunSynchronously();
     this.Close();
 }