Autor Beitrag
theo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62

Win 2000, XP, Vista; Win 7
Delphi 6, 7, 2010, MSSQL, Firebird, DevExpress
BeitragVerfasst: So 30.07.06 18:27 
Hallo als Anfänger in C# habe ich folgendes Problem:

Ich benötige eine Eigenschaft (Type string), die möglichen Werte werden zur Entwurfszeit in einer Liste bereitgestellt. enum kann ich nicht verwenden, da möglichen Werte erst zur Entwurfszeit zur Verfügung stehen.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 30.07.06 18:31 
Meinst du nicht, sie stehen erst zur Laufzeit zur Verfügung, also denn wenn das Programm läuft?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
theo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62

Win 2000, XP, Vista; Win 7
Delphi 6, 7, 2010, MSSQL, Firebird, DevExpress
BeitragVerfasst: So 30.07.06 18:36 
Die Klasse ist ein Control. Die möglichen Werte sind von einer anderen Eigenschaft abhänig. Die Auswahl muss im Eigenschaftenfenster erfolgen. Darum Entwurfszeit.
theo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62

Win 2000, XP, Vista; Win 7
Delphi 6, 7, 2010, MSSQL, Firebird, DevExpress
BeitragVerfasst: So 30.07.06 21:54 
:dance2: Ich habe mein Problem gelöst. Man muss nur seine grauen Zellen anstrengen und das machen, was man in Delphi schon immer gemacht hat. Einen "UITypeEditor" ableiten und der Eigenschaft zuordnen. Dann gehts so wie ich das brauche.