First, images...
I have a project that, at this time and version I am working with, I have 648 main stay images, so to say, plus another 100 or so in side features.
They are going to stored in a outside .dll. Though I can't figure out if I want to use the Resources feature with C# rather then the "Direct" calling if you will. I have, in many Learning projects in the past have just used the direct call "C:\\Image. jpg" with success, even outside my PC. So I could do that, as I have already have all the file names in my arrays awaiting the code to make use of them.
Question: Should I go with the Resource feature? Is this the best way to go about this with all these images? =P
Second, my program has a separate .dll holding all the text data for the program. The .cs file is over 120k as it is and I'm still not done filling all the data. Mind you this is simply a namespace, and seperate data classes, then the data. Thats it.
How should I go about calling the arrays from separate namespaces and classes? I can't figure it out. Heres an example of what I was doing earlier with no success.
and this has failed, bringing up the error "An object reference is required for the non-static field, method, or property".
I'm at a loss as to how to go about this problem. =\
I have a project that, at this time and version I am working with, I have 648 main stay images, so to say, plus another 100 or so in side features.
They are going to stored in a outside .dll. Though I can't figure out if I want to use the Resources feature with C# rather then the "Direct" calling if you will. I have, in many Learning projects in the past have just used the direct call "C:\\Image. jpg" with success, even outside my PC. So I could do that, as I have already have all the file names in my arrays awaiting the code to make use of them.
Question: Should I go with the Resource feature? Is this the best way to go about this with all these images? =P
Second, my program has a separate .dll holding all the text data for the program. The .cs file is over 120k as it is and I'm still not done filling all the data. Mind you this is simply a namespace, and seperate data classes, then the data. Thats it.
How should I go about calling the arrays from separate namespaces and classes? I can't figure it out. Heres an example of what I was doing earlier with no success.
Code:
using System; using System.Collections.Generic; using System.Drawing; namespace GeneralLibrary {[INDENT]public class ImageLib {[INDENT]System.Drawing.Image[] FrontIcon = new System.Drawing.Image[] { /*Array of 10 Images in Resources */ };[indent]ImageLib Temp = new ImageLib();[/indent] static public Bitmap GetFrontIcon(int I) {[INDENT]return Temp.FrontIcon[I]; }[/INDENT] }[/INDENT] }[/INDENT]
I'm at a loss as to how to go about this problem. =\
Comment