예제 #1
0
        private void lbCreateMatch_Click(object sender, EventArgs e)
        {
            CreateMatch matchForm = new CreateMatch();
            var         result    = matchForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                SetMatchTable();
            }
        }
예제 #2
0
        private void lbUpdateMatch_Click(object sender, EventArgs e)
        {
            var selectedRow = dataGridViewX1.SelectedRows[0];

            if (selectedRow == null)
            {
                return;
            }

            var         matchId   = selectedRow.Cells[0].Value.ToString();
            CreateMatch matchForm = new CreateMatch(matchId);
            var         result    = matchForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                SetMatchTable();
            }
        }