Changeset 13 for trunk/Forms/UFormSettings.pas
- Timestamp:
- May 30, 2015, 1:02:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSettings.pas
r7 r13 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 XMLConf; 9 10 10 11 type … … 15 16 ButtonCancel: TButton; 16 17 ButtonOk: TButton; 18 EditUserName: TEdit; 19 EditEmail: TEdit; 20 Label1: TLabel; 21 Label2: TLabel; 22 procedure FormCreate(Sender: TObject); 17 23 private 18 24 { private declarations } 19 25 public 20 { public declarations } 26 procedure Load(XMLConfig: TXMLConfig); 27 procedure Save(XMLConfig: TXMLConfig); 21 28 end; 22 29 … … 28 35 {$R *.lfm} 29 36 37 uses 38 UCore; 39 40 { TFormSettings } 41 42 procedure TFormSettings.FormCreate(Sender: TObject); 43 begin 44 45 end; 46 47 procedure TFormSettings.Load(XMLConfig: TXMLConfig); 48 begin 49 EditUserName.Text := Core.UserName; 50 EditEmail.Text := Core.Email; 51 end; 52 53 procedure TFormSettings.Save(XMLConfig: TXMLConfig); 54 begin 55 Core.UserName := EditUserName.Text; 56 Core.Email := EditEmail.Text; 57 end; 58 30 59 end. 31 60
Note:
See TracChangeset
for help on using the changeset viewer.