public void RemoveClientCommand_Executed(object sender) { if (_contoData.ClientDelete((Client)sender)) { _completeList = new List <Client>(_contoData.ClientsGet()); NumberOfPages = (int)Math.Ceiling((double)_completeList.Count / NumberOfRowsInClientsGrid); SetClientsList(); AppProperties.FormHaveModifications = false; } else { MessageBox.Show("Impossibile eliminare il Cliente perchè in uso nelle fatture!"); } }