private void DeleteCommandBinding_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            List <Activity> deletedActivities = null;

            if (selectedActivity != null)
            {
                deletedActivities = new List <Activity> {
                    selectedActivity
                };

                BDDAccess bddAccess = new BDDAccess();

                if (bddAccess.Connect())
                {
                    bddAccess.DeleteActivities(deletedActivities);
                }

                if (!string.IsNullOrEmpty(bddAccess.Information))
                {
                    MessageBox.Show(bddAccess.Information, new AssemblyInformations(Assembly.GetExecutingAssembly().GetName().Name).Product, MessageBoxButton.OK, bddAccess.MessageBoxImage, MessageBoxResult.OK);
                }
            }
            else if (ActivitiesListView.SelectedIndex != -1)
            {
                deletedActivities = new List <Activity>();

                foreach (Activity activity in ActivitiesListView.SelectedItems)
                {
                    deletedActivities.Add(activity);
                }

                BDDAccess bddAccess = new BDDAccess();

                if (bddAccess.Connect())
                {
                    bddAccess.DeleteActivities(deletedActivities);
                }

                if (!string.IsNullOrEmpty(bddAccess.Information))
                {
                    MessageBox.Show(bddAccess.Information, new AssemblyInformations(Assembly.GetExecutingAssembly().GetName().Name).Product, MessageBoxButton.OK, bddAccess.MessageBoxImage, MessageBoxResult.OK);
                }
            }

            selectedActivity = null;
        }