Shock
Shock
CC#
Created by Shock on 11/13/2024 in #help
WPF local: when using Dependency Injection
I see. So de-coupling the data selection from MainWindow will ensure I can safely do that then?
14 replies
CC#
Created by Shock on 11/13/2024 in #help
WPF local: when using Dependency Injection
Although I don't plan on having to greatly expand the project once it's complete
14 replies
CC#
Created by Shock on 11/13/2024 in #help
WPF local: when using Dependency Injection
Although from what I'm seeing here - while it violates MVVM - I would be able to have my features work if I just didn't use bindings and violated that architecture
14 replies
CC#
Created by Shock on 11/13/2024 in #help
WPF local: when using Dependency Injection
That's where I ended up as well. It's probably not "needed" but because of the UI customization that WPF allows I wanted to dive into that instead of Winforms - however it seems like winforms would have probably been the better choice here
14 replies
CC#
Created by Shock on 11/13/2024 in #help
WPF local: when using Dependency Injection
In my earlier attempts before reseraching MVVM I was taking the result of the Radio Button selection and parsing the string in order to set a variable, but it appears Data Binding is the best practice for that
14 replies
CC#
Created by Shock on 11/13/2024 in #help
WPF local: when using Dependency Injection
I have not which is probably why I should stop trying to run before crawl. I'm repurposing an old VB program and WPF looked like a great design upgrade as the prior file is just an exe that runs based on the current window. I'm attempting to make the user select their functionality instead of reading the active window
14 replies
CC#
Created by Shock on 11/13/2024 in #help
WPF local: when using Dependency Injection
I plan on having the user make a data selection on the MainWindow which allows me to later direct the program based on that input. I would need the direct reference in this situation no?
14 replies
CC#
Created by Shock on 11/7/2024 in #help
Out Parameter Question
Oh god you have no clue 💀
16 replies
CC#
Created by Shock on 11/7/2024 in #help
Out Parameter Question
Ahh - I see. I left a lot of context out in my example, but in my program I'm using a custom dll wrapper that I'm unable to adjust the parameters that are requried to be passed. By nature of usage, there should alwyas be a string output else we won't even get to call this method
16 replies
CC#
Created by Shock on 11/7/2024 in #help
Out Parameter Question
Thank you so much. In my actual usage, I'm forced to return the out as a string variable because it's passed to parse depending on the values it contains. I was blanking hard on that one
16 replies