Home > Net >  Every time a NEW form of how to get data from a class
Every time a NEW form of how to get data from a class

Time:09-26

A total of three form a class (main form, the configuration form, display form, a class)
Main form there are two buttons, a button corresponds to a form that configuration forms configured to inside the class, the data and then the class is constantly reading machine data
To deposit, database how to get and then open the display form class class read data????? configuration forms, shows that every time I open the window are the new
Of course according to the form can be read from the database

CodePudding user response:

The inside of the class variables defined as static, no matter what form, are the same data access, equivalent to a global variable
  •  Tags:  
  • C#
  • Related