Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 private void PopulateLocationsCombo()
 {
     ScanLocationCombo.FillComboBox(AttributeInstances.DeviceAttributes.Locations);
 }