示例#1
0
        /// <summary>
        /// calls window for a adding new player with slightly edited mode
        /// for Editing players (old is deleted and new is created as a replace)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEdit_Click(object sender, EventArgs e)
        {
            NewRacerForm newRacerForm = new NewRacerForm(_raceFac, _countryFac, Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));

            newRacerForm.ShowDialog();
            fillGrid();
        }
示例#2
0
        /// <summary>
        /// button for add Racer, go into next Form where user
        /// can create a new racer
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddRacer_Click(object sender, EventArgs e)
        {
            NewRacerForm nrf = new NewRacerForm(_raceFac, _countryFac);

            nrf.ShowDialog();
            fillGrid();
        }