Exemplo n.º 1
0
        /// <summary>
        /// Usunięcie kraju z bazy danych
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonCountryDelete_Click(object sender, EventArgs e)
        {
            var selectedCountryIndex = Int32.Parse(dataGridViewCountries.SelectedRows[0].Cells[0].Value.ToString());
            var deleteCountry        = _countries.GetById(selectedCountryIndex);

            _countries.DeleteById(deleteCountry.Id);
            _countries.Save();

            LoadCountries();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Usunięcie skoczka z bazy danych
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonJumperDelete_Click(object sender, EventArgs e)
        {
            var selectedJumperIndex = Int32.Parse(dataGridViewJumpers.SelectedRows[0].Cells[0].Value.ToString());
            var deleteJumper        = _jumpers.GetById(selectedJumperIndex);

            _jumpers.DeleteById(deleteJumper.Id);
            _jumpers.Save();

            LoadJumpers();
        }
Exemplo n.º 3
0
 /// <summary>
 /// Usunięcie skoczka z bazy danych
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonJumperDelete_Click(object sender, EventArgs e)
 {
     _jumpers.DeleteById(Int32.Parse(dataGridViewJumpers.SelectedRows[0].Cells[0].Value.ToString()));
     _jumpers.Save();
     LoadJumpers();
 }