Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global Variables C#
Message
De
11/12/2009 21:09:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/12/2009 18:02:10
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01438724
Message ID:
01438738
Vues:
79
>What's the best way to handle global variables that are established when the app startes - e.g. user id, company id, connection string, etc in a Windows form or WPF application as the app moves from form to form?
>I've been rolling properties forward from one form to the other and it seems that must be a better way?
>I read somewhere about copying a dictionary and that seemed to make sense.
>Any suggestions?

Check Re: Shared constants Thread #1040828 Message #1040896. You could make it as properties instead of readonly.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform