Exemple #1
0
        public Login()
        {
            InitializeComponent();

            Data           = new AppData();                     // Create the application data object
            Data.OnChange += delegate { ExchangeData(false); }; // Track data changes to keep the form synchronized
            Registrar      = new Dashboard(Data);

            Enroller = new EnrollmentForm(Data);
            ExchangeData(false);
        }
Exemple #2
0
        public Dashboard(AppData data)
        {
            InitializeComponent();
            cam.InitializeWebCam(ref pictureBox2);

            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);


            ExchangeData(false);
        }