Changeset 19 for trunk/Form
- Timestamp:
- Apr 2, 2016, 10:01:11 PM (9 years ago)
- Location:
- trunk/Form
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Form/UFormMain.pas
r18 r19 230 230 DriveInfo.Assign(TDriveInfo(ComboBoxDrive.Items.Objects[ComboBoxDrive.ItemIndex])); 231 231 Modified := True; 232 CurrentScan.SectorCount := DriveInfo.SectorCount; 233 CurrentScan.SectorSize := DriveInfo.SectorSize; 234 CurrentScan.SectorStart := 0; 235 CurrentScan.SectorEnd := CurrentScan.SectorCount - 1; 236 CurrentScan.Reset; 232 Core.Project.ScanProfile.SectorCount := DriveInfo.SectorCount; 233 Core.Project.ScanProfile.SectorStart := 0; 234 Core.Project.ScanProfile.SectorEnd := Core.Project.ScanProfile.SectorCount - 1; 237 235 UpdateInterface; 238 236 Redraw; … … 247 245 CurrentScan.SectorCount := DriveInfo.SectorCount; 248 246 CurrentScan.SectorSize := DriveInfo.SectorSize; 247 Core.Project.ScanProfile.SectorCount := Core.Project.DriveInfo.SectorCount; 248 CurrentScan.LoadProfile(Core.Project.ScanProfile);; 249 249 CurrentScan.Reset; 250 250 CurrentScan.OnChange := DriveScanChange; … … 353 353 procedure TFormMain.AOperationOptionsExecute(Sender: TObject); 354 354 begin 355 FormOperation.Load(Core.Project.CurrentScan); 355 Core.Project.ScanProfile.SectorCount := Core.Project.DriveInfo.SectorCount; 356 FormOperation.Load(Core.Project.ScanProfile); 356 357 if FormOperation.ShowModal = mrOk then begin 357 FormOperation.Save(Core.Project. CurrentScan);358 FormOperation.Save(Core.Project.ScanProfile); 358 359 Core.Project.Modified := True; 359 360 UpdateInterface; -
trunk/Form/UFormOperation.pas
r11 r19 28 28 procedure UpdateMaxValues; 29 29 public 30 procedure Load(DriveScan: TDriveScan );31 procedure Save(DriveScan: TDriveScan );30 procedure Load(DriveScan: TDriveScanProfile); 31 procedure Save(DriveScan: TDriveScanProfile); 32 32 end; 33 33 … … 57 57 end; 58 58 59 procedure TFormOperation.Load(DriveScan: TDriveScan );59 procedure TFormOperation.Load(DriveScan: TDriveScanProfile); 60 60 begin 61 61 ComboBoxRunMode.ItemIndex := Integer(DriveScan.Mode); … … 67 67 end; 68 68 69 procedure TFormOperation.Save(DriveScan: TDriveScan );69 procedure TFormOperation.Save(DriveScan: TDriveScanProfile); 70 70 begin 71 71 DriveScan.Mode := TRunMode(ComboBoxRunMode.ItemIndex);
Note:
See TracChangeset
for help on using the changeset viewer.