source: trunk/Forms/UFormSettings.pas

Last change on this file was 13, checked in by chronos, 9 years ago
  • Added: New test form where general functionality of selected backend can be tested.
  • Added: Basic git backend implementation.
  • Added: Project group form and ability to open/save group of projects as configuration to XML file.
File size: 962 bytes
Line 
1unit UFormSettings;
2
3{$mode delphi}
4
5interface
6
7uses
8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
9 XMLConf;
10
11type
12
13 { TFormSettings }
14
15 TFormSettings = class(TForm)
16 ButtonCancel: TButton;
17 ButtonOk: TButton;
18 EditUserName: TEdit;
19 EditEmail: TEdit;
20 Label1: TLabel;
21 Label2: TLabel;
22 procedure FormCreate(Sender: TObject);
23 private
24 { private declarations }
25 public
26 procedure Load(XMLConfig: TXMLConfig);
27 procedure Save(XMLConfig: TXMLConfig);
28 end;
29
30var
31 FormSettings: TFormSettings;
32
33implementation
34
35{$R *.lfm}
36
37uses
38 UCore;
39
40{ TFormSettings }
41
42procedure TFormSettings.FormCreate(Sender: TObject);
43begin
44
45end;
46
47procedure TFormSettings.Load(XMLConfig: TXMLConfig);
48begin
49 EditUserName.Text := Core.UserName;
50 EditEmail.Text := Core.Email;
51end;
52
53procedure TFormSettings.Save(XMLConfig: TXMLConfig);
54begin
55 Core.UserName := EditUserName.Text;
56 Core.Email := EditEmail.Text;
57end;
58
59end.
60
Note: See TracBrowser for help on using the repository browser.