المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Remembering Variables



C# Programming
11-26-2009, 02:30 AM
Hi, I have a program that opens an option form. For the options someone can basically list prices for various objects. I need to know how these prices can be remembered even after the program is shut down. I don't want to keep having to set the prices every time I run the program. Right now, I have a class which takes the prices and multiplies that by the quantity of an item. In that class I have static decimals. In the option form's button click I save a value to the class's static variables. Then I call those from the main form.

Thanks for your help!