Changeset 27 for trunk/Forms/ULoginForm.pas
- Timestamp:
- Nov 9, 2011, 4:11:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/ULoginForm.pas
r25 r27 19 19 ComboBoxConnection: TComboBox; 20 20 EditUserName: TEdit; 21 EditPassword: TEdit; 21 22 Image1: TImage; 22 23 Label1: TLabel; 23 24 Label2: TLabel; 24 25 Label3: TLabel; 25 MaskEditPassword: TMaskEdit;26 26 procedure ButtonCancelClick(Sender: TObject); 27 27 procedure ButtonChangeClick(Sender: TObject); … … 49 49 Core.LastUserName := EditUserName.Text; 50 50 Core.LastProfile := ComboBoxConnection.ItemIndex; 51 Core.LastPassword := MaskEditPassword.Text;51 Core.LastPassword := EditPassword.Text; 52 52 end; 53 53 … … 60 60 begin 61 61 MainForm.PersistentForm.Load(Self); 62 EditUserName.Text := Core.LastUserName; 63 EditPassword.Text := ''; 64 Core.Profiles.FillStrings(ComboBoxConnection.Items); 62 65 ComboBoxConnection.ItemIndex := Core.LastProfile; 63 EditUserName.Text := Core.LastUserName; 64 MaskEditPassword.Text := ''; 65 Core.Profiles.FillStrings(ComboBoxConnection.Items); 66 if (ComboBoxConnection.Items.Count > 0) and 67 (ComboBoxConnection.ItemIndex = -1) then ComboBoxConnection.ItemIndex := 0; 66 68 end; 67 69 … … 75 77 if LoginProfileForm.ShowModal = mrOk then begin 76 78 Core.Profiles.FillStrings(ComboBoxConnection.Items); 79 Core.LastProfile := ComboBoxConnection.ItemIndex; 80 ComboBoxConnection.ItemIndex := Core.LastProfile; 81 if (ComboBoxConnection.Items.Count > 0) and 82 (ComboBoxConnection.ItemIndex = -1) then ComboBoxConnection.ItemIndex := 0; 77 83 end; 78 84 end;
Note:
See TracChangeset
for help on using the changeset viewer.