void UpdateOnActionSelection() { Inputs = new List <IServiceInput>(); IsEnabled = false; if (_action?.SelectedAction != null) { Inputs = _action.SelectedAction.Inputs; _datatalistMapper.MapInputsToDatalist(Inputs); IsInputsEmptyRows = Inputs.Count < 1; IsEnabled = true; } OnPropertyChanged("Inputs"); }
private void UpdateOnActionSelection() { Inputs = new List <IServiceInput>(); IsEnabled = false; if (_action?.SelectedConstructor != null) { Inputs = _action.SelectedConstructor.Inputs.Select(parameter => new ServiceInput(parameter.Name, parameter.Value) { EmptyIsNull = parameter.EmptyToNull, RequiredField = parameter.IsRequired, TypeName = parameter.TypeName, IntellisenseFilter = parameter.IsObject ? enIntellisensePartType.JsonObject : enIntellisensePartType.All, IsObject = parameter.IsObject, Dev2ReturnType = parameter.Dev2ReturnType, ShortTypeName = parameter.ShortTypeName, } as IServiceInput).ToList(); _datatalistMapper.MapInputsToDatalist(Inputs); IsInputsEmptyRows = Inputs.Count < 1; IsEnabled = true; } OnPropertyChanged("Inputs"); }