Changeset 13 for trunk/Form/UFormProject.pas
- Timestamp:
- Apr 2, 2016, 1:06:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Form/UFormProject.pas
r11 r13 16 16 Button1: TButton; 17 17 Button2: TButton; 18 Edit1: TEdit; 18 ComboBoxDrive: TComboBox; 19 EditName: TEdit; 19 20 Label1: TLabel; 20 21 Label2: TLabel; 22 Label3: TLabel; 23 Label4: TLabel; 24 LabelSectorCount: TLabel; 21 25 SpinEditSectorSize: TSpinEdit; 22 26 private … … 33 37 {$R *.lfm} 34 38 39 uses 40 UFormMain; 41 35 42 { TFormProject } 36 43 37 44 procedure TFormProject.Load(Project: TProject); 38 45 begin 39 Edit1.Text := Project.Name; 40 SpinEditSectorSize.Value := Project.SectorSize; 46 FormMain.DriveList.LoadToStrings(ComboBoxDrive.Items); 47 EditName.Text := Project.Name; 48 SpinEditSectorSize.Value := Project.DriveInfo.SectorSize; 49 ComboBoxDrive.ItemIndex := FormMain.DriveList.IndexOf(FormMain.DriveList.FindByModel(Project.DriveInfo.Model)); 41 50 end; 42 51 43 52 procedure TFormProject.Save(Project: TProject); 44 53 begin 45 Project.Name := Edit 1.Text;46 Project. SectorSize := SpinEditSectorSize.Value;54 Project.Name := EditName.Text; 55 Project.DriveInfo.SectorSize := SpinEditSectorSize.Value; 47 56 end; 48 57
Note:
See TracChangeset
for help on using the changeset viewer.