Exemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            int selectedIdMainForm = 0;
            var frmAddMatchForm    = new MatchDetailsForm(db, selectedIdMainForm);

            frmAddMatchForm.HasBeenChanged += FrmAddMatchForm_HasBeenChanged;
            frmAddMatchForm.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            var selectedIdMainForm = (int)dgvMatches.SelectedRows[0].Cells[0].Value;
            var frmAddMatchForm    = new MatchDetailsForm(db, selectedIdMainForm);

            frmAddMatchForm.HasBeenChanged += FrmAddMatchForm_HasBeenChanged;
            frmAddMatchForm.ShowDialog();
        }