Exemplo n.º 1
0
        /// <summary>
        /// When the form loads.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void formMain_Load(object sender, EventArgs e)
        {
            // Load the logo
            LoadLogo();

            // Initially update the time labels.
            updateTimers();

            // Set an initial hint.
            updateHints();

            // Update week number.
            updateWeekNumber();

            // Show version
            lblVersion.Text = ModuleGeneric.getVersionString();
            log.Info("Loaded " + ModuleGeneric.getVersionString());

            // If its not saturday we shouldnt be scanning in!
            if (!(DateTime.UtcNow.DayOfWeek.Equals(DayOfWeek.Saturday)))
            {
                btnScanIn.Enabled = false;
            }

            // Ensure the scan table exists
            serviceLayer.EnsureScanTableExists();
        }