/// <summary> /// On the form load /// </summary> /// <param name="sender">ignored</param> /// <param name="e">ignored</param> private void FormAbout_Load(object sender, EventArgs e) { log.Trace("Loading form."); lblVersion.Text = ModuleGeneric.getVersionString(); lblDotNetVer.Text = ".Net " + Environment.Version; Label1.Text = Settings.Default.AssociationName; }
/// <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(); }