virok
❔ Reloading MainWindow after some changes
Hello guys,
im currently working on a project to improve my C#/programming skills.
I have following problem:
When my application starts, it checks a filepath and if the filepath is valid, a combobox gets filled with data.
If it isnt valid, I can type a drive Letter in a TextBox (the filepath after the driveletter is usually the same).
After I typed in the new drive letter I click a button which replaces the drive letter in the existing filepath string.
After that I want my MainWindow to be "reloaded" as if I initially opened it with the right filepath.
The filepath has a setter and a getter, thats how I work with that variable.
My code is kinda ugly, so I dont wanna get bashed because of it and hope my description helps for now?
Thank you!
26 replies