Autor Beitrag
Rassi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79



BeitragVerfasst: Mi 15.10.08 12:53 
Hallo.

Ich speichere die Programmeinstellungen in einer Ressourcendatei.
Nun will ich eine Farbeinstellung (Color) speichern und wieder lesen können.
Wie geht das?

Guß
Rasmus
Rassi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79



BeitragVerfasst: Mi 15.10.08 13:03 
Hallo.

Habe es selbst hinbekommen. Beim Schreiben:

resWriter.AddResource("Beshreibungstext", colorFarbe_als_Color);


Beim Lesen:

iDirectionaryEnumeration enRes = resReader.GetEnumeration();
....
colorFarbe_als_Color= (Color) enRes.Value;


Gruß
Rasmus