private async void AddButton_Click(object sender, EventArgs e)
        {
            AddEditService aes = new AddEditService();

            aes.MasterCB.DataSource    = masters;
            aes.MasterCB.ValueMember   = "Id";
            aes.MasterCB.DisplayMember = "Name";


            DialogResult result = aes.ShowDialog(this);

            if (result == DialogResult.Cancel)
            {
                return;
            }

            Service service = new Service()
            {
                Master = (Master)aes.MasterCB.SelectedItem,
                Name   = aes.NameTB.Text,
                Price  = (int)aes.PriceTB.Value
            };

            context.Services.Add(service);
            await context.SaveChangesAsync();

            MessageBox.Show("Услуга была добавлена");
            dataGridView1.Refresh();
        }
        private async void EditButton_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                int  index     = dataGridView1.SelectedRows[0].Index;
                int  id        = 0;
                bool converted = Int32.TryParse(dataGridView1[0, index].Value.ToString(), out id);
                if (converted == false)
                {
                    return;
                }

                Service service = await context.Services.FindAsync(id);

                AddEditService aes = new AddEditService();

                aes.NameTB.Text           = service.Name;
                aes.PriceTB.Value         = (decimal)service.Price;
                aes.MasterCB.SelectedItem = service.Master;

                aes.MasterCB.DataSource    = masters;
                aes.MasterCB.ValueMember   = "Id";
                aes.MasterCB.DisplayMember = "Name";

                DialogResult result = aes.ShowDialog(this);

                if (result == DialogResult.Cancel)
                {
                    return;
                }

                service.Master = (Master)aes.MasterCB.SelectedItem;
                service.Name   = aes.NameTB.Text;
                service.Price  = (int)aes.PriceTB.Value;

                await context.SaveChangesAsync();

                MessageBox.Show("Услуга была изменена");
                dataGridView1.Refresh();
            }
        }