private void ButtonAdd_Click(object sender, RoutedEventArgs e)
        {
            ClassUser             user = new ClassUser();
            WindowUserDataEdition windowUserDataEdition = new WindowUserDataEdition(user);

            windowUserDataEdition.AddNew = true;
            windowUserDataEdition.ShowDialog();
            if (windowUserDataEdition.DialogResult == true)
            {
                UpdateUser(user, windowUserDataEdition.AddNew);
                LoadDataToDataGridListOfUser();
            }
        }
        private void ButtonEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DataGridListOfUser.SelectedIndex == -1)
            {
                MessageBox.Show("Select the row corresponding to the user", "No row selected");
                return;
            }
            ClassUser             user = (ClassUser)DataGridListOfUser.SelectedItem;
            WindowUserDataEdition windowUserDataEdition = new WindowUserDataEdition(user);

            windowUserDataEdition.AddNew        = false;
            windowUserDataEdition.IsNotAssigned = CheckIfSelectedUserIsNotAssigned(user);
            windowUserDataEdition.ShowDialog();
            if (windowUserDataEdition.DialogResult == true)
            {
                UpdateUser(user, windowUserDataEdition.AddNew);
                LoadDataToDataGridListOfUser();
            }
        }