private void AddCoffeClick(object sender, RoutedEventArgs e)
 {
     if (lbGroup_1.SelectedItem != null)
     {
         EddOrEditCoffe dialog = new EddOrEditCoffe(((GroupViewModel)lbGroup_1.SelectedItem).GroupId);
         dialog.Show();
         dialog.Closed      += Dialog_Closed;
         groupService        = new GroupServise("DbConnection");
         groupVM             = groupService.GetAll();
         lbGroup.DataContext = groupVM;
     }
 }
 private void ChangeCoffeClick(object sender, RoutedEventArgs e)
 {
     if (lbCoffe_1.SelectedItem != null)
     {
         EddOrEditCoffe dialog = new EddOrEditCoffe((CoffeViewModel)lbCoffe_1.SelectedItem);
         dialog.Show();
         dialog.Closed += Dialog_Closed;
     }
     else
     {
         MessageBox.Show("Выберите кофе для изменения", "Обратите внимание!", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }