示例#1
0
        private async void ulozitButton_click(object sender, EventArgs e)
        {
            LockTextBox();
            await Updatehrac();

            await form.GetHraci();

            Close();
        }
示例#2
0
        private async void button1_Click(object sender, EventArgs e)
        {
            if (!ValidateInput())
            {
                MessageBox.Show("Špatně vyplněné údaje!");
                return;
            }

            GetInfo();
            await _domainHraci.InsertHrac(Hrac);

            await form.GetHraci();

            Close();
        }