public ClientBuildingAndBuildingPackage SelectBuildingAndContractorPackage(IModalDialogService modalDialogService,
     IServiceFactory serviceFactory)
 {
     var viewModel = new ManageClientsViewModel(modalDialogService, serviceFactory);
       viewModel.DialogMode = DialogMode.ChoseSubItem;
       ModalDialogHelper<ManageClients>.ShowDialog(viewModel);
       if (!viewModel.IsCanceled)
       {
     var result = new ClientBuildingAndBuildingPackage();
     result.Building = viewModel.SelectedBuilding;
     result.Client = viewModel.SelectableClient.SelectedItem.Client;
     return result;
       }
       return null;
 }
 public void ManageClients(IModalDialogService modalDialogService, IServiceFactory serviceFactory)
 {
     var viewModel = new ManageClientsViewModel(modalDialogService, serviceFactory);
       viewModel.DialogMode = DialogMode.Manage;
       ModalDialogHelper<ManageClients>.ShowDialog(viewModel);
 }