private void SelectPreviousScan() { var scanList = controller.GetPreviousScansList(); var scanSelector = new SelectScanForm(); scanSelector.SetScanSelection(scanList); scanSelector.ShowDialog(); if (scanSelector.DialogResult == DialogResult.OK) { var selectedScan = scanSelector.SelectedScan; var location = controller.GetLocation(selectedScan.ScanLocation); selectedScan.MunisLocation = location; ScanLocationCombo.SetSelectedAttributeByValue(selectedScan.ScanLocation); ScanDateTimeTextBox.Text = selectedScan.Datestamp.ToString(); ScanEmployeeTextBox.Text = selectedScan.User; controller.StartScan(selectedScan); LockControls(); } }
private void PopulateLocationsCombo() { ScanLocationCombo.FillComboBox(AttributeInstances.DeviceAttributes.Locations); }