Example #1
0
 private void b_ulozit_Click(object sender, EventArgs e)
 {
     if (String.IsNullOrEmpty(tb_jmeno.Text) || String.IsNullOrEmpty(tb_prijmeni.Text) || String.IsNullOrEmpty(tb_zeme.Text))
     {
         MessageBox.Show("Nevyplnene udaje.");
         return;
     }
     UpdateHrac();
     _hrac.Upravit();
     ResetDataSource();
     MessageBox.Show("Informace o hraci upraveny.");
 }