of course, you might want to just pass that data class into your Portal class instead of creating it inside the Portal class
f
frank
08/24/2020, 4:47 PM
Thx for the feedback, You say to send it as an argument to my class?
frank
08/24/2020, 4:47 PM
it does not convince me
n
Nir
08/24/2020, 5:13 PM
well, the idea is dependency injection
Nir
08/24/2020, 5:13 PM
but in this particular example I'm not really sure if it's applicable or not.
Nir
08/24/2020, 5:14 PM
I'm not really sure what InputChooseFolder gives you at all, in your example
f
frank
08/24/2020, 5:40 PM
@Nir, it's not applicable in this case. I don't need use implementations or subclass of InputChooseFolder.
n
Nir
08/24/2020, 5:45 PM
I don't actually see why you need InputChooseFolder at all though
f
frank
08/24/2020, 5:58 PM
It is Simple form with multiples inputs: label + input + btn(select folder) and I created a function that returns InputChooseFolder for avoid boilerplate code*.*
Sample: