private void btn_ModificarClient_Click(object sender, RoutedEventArgs e)
        {
            AfegirClientWindow modificarClientWindow = new AfegirClientWindow(
                dataGrid_clients.SelectedItem as client, modeControllerClient.modificar, controller.getBaseContext());

            modificarClientWindow.ShowDialog();
            actualitzaClients(ModeVisualitzacioClients.ACTIUS);
        }
        private void btn_AfegirClient_Click(object sender, RoutedEventArgs e)
        {
            AfegirClientWindow afegirClientWindow = new AfegirClientWindow(
                new client(), modeControllerClient.afegir, controller.getBaseContext());

            afegirClientWindow.ShowDialog();
            actualitzaClients(ModeVisualitzacioClients.ACTIUS);
        }