Ok guys, Looks like I've gone a thoroughly confused myself here. Perhaps one of you kind folks can chime in and set me straight. Here are my requirements: 1. Collection of layers called layerCollection 2. Each Layer must have a Name property that is unique to the collection it resides in. 3. You can access each Layer in the collection by Name or Index[] foundLayer = layerCollection.getLayer("Background"); <-- returns Layer with layerName = "Border" foundLayer = layerCollection.getLayer("Border"); foundLayer = layerCollection [0]; foundLayer = layerCollection [1]; etc... Help :D Once I figure this part out I'm sure sorting the layerCollection to reorder them will be a simple task. Thanks again for your help and patience!
marksmit
Posts
-
C# need some direction -
C# need some directionJust want to say thanks for the advise so far. You've given me some more things to think about and try. I'm going to spend today tinkering again and might post some code later for further advise. ;)
-
C# need some directionHi All, I'm pretty new here so excuse my ignorance ;) I've just started learning C# and come from a long history of C/C++/PowerBASIC/Assembly, 20 years total. To learn C# I decided to jump in with both feet and recreate some past projects for fun. So here is what I want to do and where I am getting stuck. I have a Layout which consists of Tracks, each Track contains Layers. Think of this like an multi-track audio application and Photoshop combined. Each Track in a Layout should have a unique Name. Every Layer in a Track should also have a unique Name. This sounds to me like I need to use a Dictionary collection. I also need to iterate over these Tracks and Layers in order to draw them IN the correct order. The order should be user defined and should allow for user re-ordering (MoveUp MoveDown type of thing). So I'm left thinking I need a Dictionary + Sorted Array by Order collection? I'm sure this can be done but as I said I'm quite new to C#/.NET and would like some direction. Thanks!