Closed weerox closed 4 years ago
I [1] laddar de bilder från en "resource". Resurserna verkar anges när programmet byggs, se [2].
[1] https://github.com/mono/gtk-sharp/blob/master/sample/GtkDemo/DemoImages.cs#L51 [2] https://github.com/mono/gtk-sharp/blob/master/sample/GtkDemo/Makefile.am#L48
EDIT: Here is the appropriate compiler option: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/resource-compiler-option
Good stuff! Fixed so that the images get included in a Resource.resx file so we don't need hardcoded paths.
Jag har ingen aning om hur man "importerar" bilder relativt projektet så det är hårdkodade sökvägar, vilket måste ändras