Ignore:
Timestamp:
Mar 9, 2012, 8:11:13 AM (12 years ago)
Author:
chronos
Message:
  • Added: Remember last password in login dialog.
  • Fixed: Some Add, Edit, View, Select dialog display.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/ULoginForm.pas

    r30 r40  
    1717    ButtonCancel: TButton;
    1818    ButtonLogin: TButton;
     19    CheckBoxRememberPassword: TCheckBox;
    1920    ComboBoxConnection: TComboBox;
    2021    EditUserName: TEdit;
     
    5051  Core.LastProfile := ComboBoxConnection.ItemIndex;
    5152  Core.LastPassword := EditPassword.Text;
     53  Core.RememberPassword := CheckBoxRememberPassword.Checked;
    5254end;
    5355
    5456procedure TLoginForm.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    5557begin
    56   MainForm.PersistentForm.Save(Self);
     58  //MainForm.PersistentForm.Save(Self);
    5759end;
    5860
    5961procedure TLoginForm.FormShow(Sender: TObject);
    6062begin
    61   MainForm.PersistentForm.Load(Self);
     63  //MainForm.PersistentForm.Load(Self);
    6264  EditUserName.Text := Core.LastUserName;
    63   EditPassword.Text := '';
     65  EditPassword.Text := Core.LastPassword;
    6466  EditPassword.SetFocus;
     67  CheckBoxRememberPassword.Checked := Core.RememberPassword;
    6568  Core.Profiles.FillStrings(ComboBoxConnection.Items);
    6669  ComboBoxConnection.ItemIndex := Core.LastProfile;
Note: See TracChangeset for help on using the changeset viewer.