Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: What it mean when a class contructor accepts same class object ? Pin
TJoe11-Oct-07 3:22
TJoe11-Oct-07 3:22 
GeneralRe: What it mean when a class contructor accepts same class object ? Pin
Ennis Ray Lynch, Jr.11-Oct-07 3:20
Ennis Ray Lynch, Jr.11-Oct-07 3:20 
GeneralRe: What it mean when a class contructor accepts same class object ? Pin
DavidNohejl11-Oct-07 3:24
DavidNohejl11-Oct-07 3:24 
GeneralRe: What it mean when a class contructor accepts same class object ? Pin
TJoe11-Oct-07 3:30
TJoe11-Oct-07 3:30 
GeneralRe: What it mean when a class contructor accepts same class object ? Pin
DavidNohejl11-Oct-07 3:56
DavidNohejl11-Oct-07 3:56 
AnswerRe: What it mean when a class contructor accepts same class object ? Pin
DavidNohejl11-Oct-07 3:21
DavidNohejl11-Oct-07 3:21 
GeneralRe: What it mean when a class contructor accepts same class object ? Pin
N a v a n e e t h11-Oct-07 3:25
N a v a n e e t h11-Oct-07 3:25 
QuestionUI Controls which generate screens at runtime Pin
NicoJS11-Oct-07 2:50
NicoJS11-Oct-07 2:50 
For data / transactional apps such as LOB, we all want the user to view and update an object (which is usually OR mapped to a datastore) or a list of objects.

I am looking for a UI control which generates a screen at runtime based on the properties AND methods of an object. The PropertyGrid of the ComponentModel does a wonderful job but I cannot present that to users.
Also, its Reflection/Attribute driven model means the end-users cannot influence many of the display characteristics. I am fully prepared to implement an interface which the UI control imposes on me.
Such an interface can request the properties to display, the order, the category, which are updateable, default values, help, and whatever other wonderful things the UI control can do with the info it gets from the interface.
It can also ask me to save any changes the user made (which is limited to the UI type of properties such as position, size, order, etc), so the user can customize his display.

ITypedList (which is used by most grids) is a good example with its GetItemProperties method, why can't PropertyGrid also use such a method iso Attributes ?

But displaying and maintaining properties is only the beginning. Why not include methods, which are then displayed as buttons (or context menus or some other wonderful thing). When the user
clicks on a button, the UI requests values for each parameter from the user (but only after requesting defaults, allowed values, help, etc for each parameter from the implementor of the interface).

This way, Reflection/Attributes represents only one of many ways to influence the UI. I can implement the interface such that the info is called from some config file or metadata database.

Is there something like that or am I missing something ?
AnswerRe: UI Controls which generate screens at runtime Pin
visualhint11-Oct-07 9:07
visualhint11-Oct-07 9:07 
Questionc# ToolStripMenuItem Visible propert Pin
ATCsharp11-Oct-07 2:32
ATCsharp11-Oct-07 2:32 
AnswerRe: c# ToolStripMenuItem Visible propert Pin
VirtualVoid.NET12-Oct-07 2:10
VirtualVoid.NET12-Oct-07 2:10 
Question[Message Deleted] Pin
Rinki Mukheraji11-Oct-07 1:51
Rinki Mukheraji11-Oct-07 1:51 
AnswerRe: GridView Pin
Spunky Coder11-Oct-07 1:55
Spunky Coder11-Oct-07 1:55 
AnswerRe: GridView Pin
Anthony Mushrow11-Oct-07 2:04
professionalAnthony Mushrow11-Oct-07 2:04 
AnswerRe: GridView Pin
Rinki Mukheraji11-Oct-07 2:04
Rinki Mukheraji11-Oct-07 2:04 
GeneralRe: GridView Pin
Guffa11-Oct-07 4:07
Guffa11-Oct-07 4:07 
Question2 urgent questions Pin
sheepdonkey11-Oct-07 1:38
sheepdonkey11-Oct-07 1:38 
AnswerRe: 2 urgent questions Pin
ATCsharp11-Oct-07 2:36
ATCsharp11-Oct-07 2:36 
GeneralRe: 2 urgent questions Pin
sheepdonkey11-Oct-07 2:58
sheepdonkey11-Oct-07 2:58 
GeneralRe: 2 urgent questions Pin
ATCsharp11-Oct-07 4:41
ATCsharp11-Oct-07 4:41 
AnswerRe: 2 urgent questions Pin
Dave Kreskowiak11-Oct-07 4:05
mveDave Kreskowiak11-Oct-07 4:05 
QuestionHow to run a dos command from csharp application. Pin
tech_the_fighter11-Oct-07 0:56
tech_the_fighter11-Oct-07 0:56 
AnswerRe: How to run a dos command from csharp application. [modified] Pin
Spunky Coder11-Oct-07 1:05
Spunky Coder11-Oct-07 1:05 
GeneralRe: How to run a dos command from csharp application. Pin
tech_the_fighter11-Oct-07 1:18
tech_the_fighter11-Oct-07 1:18 
GeneralRe: How to run a dos command from csharp application. Pin
Spunky Coder11-Oct-07 1:39
Spunky Coder11-Oct-07 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.