private void Button_Delete(object sender, RoutedEventArgs e) { Console.WriteLine("join::Button_Delete"); UCClientTypeGrid.DataContext = new ClientTypeGridControl.Data { ClientTypeItems = _clientTypeService.GetAll() }; }
public ClientFormControl() { _clientService = DiConfig.Resolve <IClientService>(); _clientTypeService = DiConfig.Resolve <IClientTypeService>(); InitializeComponent(); ComboBoxClientType.ItemsSource = _clientTypeService.GetAll(); ComboBoxClientType.DisplayMemberPath = "Name"; ComboBoxClientType.SelectedValuePath = "Id"; }
public ClientTypeGridControl() { _clientTypeService = DiConfig.Resolve <IClientTypeService>(); InitializeComponent(); DataContext = new Data { ClientTypeItems = _clientTypeService.GetAll() }; ClientTypeDataGrid.MouseDoubleClick += DataGrid_MouseDoubleClick; }
private async Task GetListItems() { IdentificationTypeList = new SelectList(await _identificationTypeService.GetAll(), nameof(CommonModel.Id), nameof(CommonModel.Description)); ClientTypeList = new SelectList(await _clientTypeService.GetAll(), nameof(CommonModel.Id), nameof(CommonModel.Description)); }