Changeset 50 for trunk/Client/Forms/UFormLoginProfile.pas
- Timestamp:
- Mar 21, 2012, 6:18:39 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/Client/Forms/UFormLoginProfile.pas (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Client/Forms/UFormLoginProfile.pas
r46 r50 71 71 ProfileList: TProfileList; 72 72 public 73 procedure UpdateInterface; 73 74 end; 74 75 … … 157 158 begin 158 159 MainForm.PersistentForm.Save(Self); 160 Core.Profiles.SaveToRegistry(Core.RegistryRootKey, Core.RegistryKey); 159 161 end; 160 162 … … 195 197 if (ListBoxProfiles.Items.Count > 0) and 196 198 (ListBoxProfiles.ItemIndex = -1) then ListBoxProfiles.ItemIndex := 0; 199 UpdateInterface; 197 200 end; 198 201 … … 209 212 EditName.Text := Name; 210 213 SelectedProfile := TConnectProfile(ProfileList[ListBoxProfiles.ItemIndex]); 214 UpdateInterface; 211 215 end; 212 216 end; … … 216 220 if Assigned(SelectedProfile) then 217 221 SelectedProfile.Port := SpinEditPort.Value; 222 end; 223 224 procedure TLoginProfileForm.UpdateInterface; 225 begin 226 EditName.Enabled := ListBoxProfiles.ItemIndex <> -1; 227 EditServer.Enabled := ListBoxProfiles.ItemIndex <> -1; 228 EditDatabase.Enabled := ListBoxProfiles.ItemIndex <> -1; 229 SpinEditPort.Enabled := ListBoxProfiles.ItemIndex <> -1; 230 ComboBoxProtocol.Enabled := ListBoxProfiles.ItemIndex <> -1; 218 231 end; 219 232
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chronis/chrome/site/your_project_logo.png)