private void participantDataGridView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int             index    = Int32.Parse(this.participantDataGridView.CurrentRow.Cells["num"].Value.ToString());
            ParticipantForm partForm = new ParticipantForm(index);

            partForm.ShowDialog();
        }
Esempio n. 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     var form = new ParticipantForm();
     var result = form.ShowDialog(this);
     if (result == DialogResult.OK)
     {
         listBox1.Items.Add(form.Data);
     }
 }