示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            AddParticipant tost = new AddParticipant();

            if (tost.ShowDialog() == DialogResult.OK)
            {
                tost.first.InsertClient();
            }
            button2_Click(sender, e);
        }
示例#2
0
        private void button5_Click(object sender, EventArgs e)
        {
            int            ID   = (int)dataGridView2.SelectedRows[0].Cells[0].Value;
            AddParticipant tost = new AddParticipant();

            foreach (Participants two in ParticipantsListMy)
            {
                if (two.id == ID)
                {
                    tost.first = two;
                    if (tost.ShowDialog() == DialogResult.OK)
                    {
                        tost.first.UpdateClient();
                    }
                }
            }
            button2_Click(sender, e);
        }