NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 59 60 61 62 63 … 93 Next »
Dynamically accessing parameters?

 
  • 0 Vote(s) - 0 Average
Dynamically accessing parameters?
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#1
2006-02-06, 03:57 PM
I need some help with making my GBPVR SkinTools code more efficient - perhaps with reflection or generics to make the methods more reusable with different types.

Currently, I have code like this:

Code:
switch(e.Node.Parent.Name) {
     case "TextStyles":
          propertyGrid.SelectedObject = workingSkin.TextStyles[nodePosition];
          break;
     case "NamedColors":
          ...

but I'd really like to have code something like this:

Code:
propertyGrid.SelectedObject = workingSkin[passedInObjectName][nodePosition];

I actually found code to accomplish the first part, but it errors out when I try to add the node position.

Anyone know how to do this?

Thanks in advance.

gruskada
gruskada
Offline

Member

Posts: 121
Threads: 20
Joined: Dec 2005
#2
2006-02-08, 03:11 AM
Nevermind. I don't think I can really do it this way anyway due to all the transformations that need to take place between the skin and the C# classes.

gruskada
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Video streaming URL and parameters? cncb 1 1,760 2021-10-22, 06:58 PM
Last Post: sub
  Recurring Recording URL Parameters jcole998 2 2,883 2019-09-19, 01:08 PM
Last Post: jcole998
  Accessing music file metadata in C# bgowland 6 3,259 2013-01-26, 05:14 AM
Last Post: bgowland
  Update NewSyleListPlugin Button list dynamically? psycik 2 1,713 2011-12-22, 12:25 AM
Last Post: mvallevand
  accessing database fluffykeith 3 1,853 2008-07-09, 05:43 PM
Last Post: sub
  Easy .net snippet for accessing config.xml? zehd 3 1,654 2008-03-23, 05:58 AM
Last Post: zehd
  Accessing TV Devices via C# blackpaw 2 1,512 2008-01-17, 04:28 AM
Last Post: blackpaw
  Setting compression parameters on HW encoders tmrt 5 1,992 2007-05-21, 04:13 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode