Core Dream Studios
Dependency Injection + MVVM?
I followed a Tim Corey tutorial on Dependency Injection in WPF but he did not use MVVM just raw code behind. How hard would be to switch over to MVVM? I just want an app where I have a MainView, SettingsView, and a few other Views. He uses Interfaces, etc and I'm lost. :<
What should I do?
431 replies
_sdbModel Model not being referenced
I am trying to enumerate my model and insert it into my SQLite database, but when I try, the model is null.
Doing a debug on the ImportFileSDB() does show data in the model before the next method is called. Did I miss a step somewhere?
I appreciate your advice.
Main Form Class
Repository class:
https://paste.mod.gg/tqxazwksrppy/0
2 replies
Exporting all model data to a CSV
Hello. I have successfully pulled data out of a custom .sdb (not sqlite), from a old game and was trying to save it to a .CSV so I can import it into a database later (SQLite). I can do the last part just fine but getting a bit lost on the Export side.
Thank you in advance.
5 replies
❔ WF to WPF Help Needed
Hello sharpers. I have a issue where I need to convert at least the LoadFileSyncs to work with CommunityToolkit.MVVM in WPF
I know how to Bind a ICommand to a button, I know how to do very basic ViewModel stuff so far but this is very new to me.
OG Code is @ https://pastebin.com/EQyMRsvf
My VM is @ https://pastebin.com/7cxT0ntv
I appreciate you all!
8 replies
❔ Bytes to UInt64
I am having a issue trying to turn the hex output to ulong, (UINT64). I keep getting 6687895829614943646 from 5CD02DD2B303DD9E
I know 5CD02DD2B303DD9E should be 11447309898705915996 since my hex editor is right. I am using Little Endian.
Any help would be appreciated, thank you.
Here is my code:
67 replies
❔ ✅ ListView Annoyances.
I am trying to use await/async to pull all files from all folders in a chosen path. The issue I have is when trying to add them to a listview, and it keeps erroring out with the message:
:'Cannot add or insert the item 'bakedfile00/AI/AIGOSGameObject.jsfb' in more than one place. You must first remove it from its current location or clone it. (Parameter 'item')'
I am close to solving it, been trying various things but no luck. Can anyone help me? Thank you.
My code is at this URL due to Discord message limit.
https://pastebin.com/Eab8dP9F
Thank you! ❤️
141 replies
❔ System.AccessViolationException: 'Attempted to read or write protected memory.
Even with <AllowUnsafeCodeBlocks> enabled and using unsafe { }, this error does not go away. And before anyone asks, no this is not a cheat app or related to online gaming. Is this a limitation of C#? Thanks!
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
41 replies
Need Python to C Sharp Conversion
```
Summary:
Trying to port a CRC32 lib Martin Scharrer created in Python, I see no known C# version and I am barely a Python dev.
Sources:
https://github.com/MartinScharrer/crccheck/blob/main/crccheck/crc.py
https://github.com/MartinScharrer/crccheck/blob/main/crccheck/checksum.py
I do have the crc.py, I will add it to this post if anyone can give me a clue.
I appreciate you so much and yes I'd include his license and credit. 🙂
39 replies