Esempio n. 1
0
 public MainForm() {
   InitializeComponent();
   Data = new AppData();								// Create the application data object
   Data.OnChange += delegate { ExchangeData(false); };	// Track data changes to keep the form synchronized
   Enroller = new EnrollmentForm(Data);
   Verifier = new VerificationForm(Data);
   ExchangeData(false);								// fill data with default values from controls
 }
 public VerificationForm(AppData data) {
   InitializeComponent();
   Data = data;
 }
Esempio n. 3
0
 public V_Verification(AppData data)
 {
     InitializeComponent();
     Data = data;
 }
 // Constructor
 public EnrollmentForm(AppData data) {
   InitializeComponent();
   Data = data;										// Keep reference to the data
   ExchangeData(true);									// Init data with default control values;
   Data.OnChange += delegate { ExchangeData(false); };	// Track data changes to keep the form synchronized
 }