- Timestamp:
- 01/20/12 13:24:10 (13 years ago)
- Location:
- branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/AccessClient.cs
r7375 r7380 93 93 94 94 public static void Store(IAccessItem item) { 95 //TODO: never used? delete?95 //TODO: prevent storing of lightweight users 96 96 } 97 97 -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/Views/LightweightUserView.cs
r7375 r7380 31 31 32 32 [View("LightweightUser View")] 33 [Content(typeof( CheckedItemList<LightweightUser>), true)]33 [Content(typeof(ReadOnlyCheckedItemList<LightweightUser>), true)] 34 34 public partial class LightweightUserView : CheckedItemListView<LightweightUser> { 35 35 public LightweightUserView() { 36 36 InitializeComponent(); 37 37 this.showDetailsCheckBox.Checked = false; 38 this.itemsGroupBox.Text = "Users"; 38 39 } 39 40 40 41 protected override void SetEnabledStateOfControls() { 41 42 base.SetEnabledStateOfControls(); 42 this.addButton.Enabled = false;43 43 this.showDetailsCheckBox.Enabled = false; 44 this.removeButton.Enabled = false;45 }46 47 protected override void itemsListView_SelectedIndexChanged(object sender, EventArgs e) {48 base.itemsListView_SelectedIndexChanged(sender, e);49 this.removeButton.Enabled = false;50 44 } 51 45 -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/Views/RefreshableLightweightUserView.cs
r7375 r7380 34 34 public RefreshableLightweightUserView() { 35 35 InitializeComponent(); 36 37 36 } 38 37 39 //set an action like a webservice call to retrieve the users which should be marked as checked 40 //TODO: disable refresh button if not set 38 //set an action like a webservice call to retrieve the users which should be marked as checked 41 39 public Func<List<Guid>> FetchSelectedUsers { get; set; } 42 40 private List<Guid> selectedUsers; … … 64 62 checkedUsers.SetItemCheckedState(idx, selectedUsers.Contains(u.Id)); 65 63 }); 66 lightweightUserView.Content = checkedUsers; 64 lightweightUserView.Content = checkedUsers.AsReadOnly(); 65 } 66 67 protected override void SetEnabledStateOfControls() { 68 base.SetEnabledStateOfControls(); 69 refreshButton.Enabled = FetchSelectedUsers != null; 67 70 } 68 71 69 72 public ICheckedItemList<LightweightUser> GetCheckedUsers() { 70 if (lightweightUserView.Content == null) 71 return null; 72 else 73 return lightweightUserView.Content; 73 return (lightweightUserView.Content == null) ? null : lightweightUserView.Content; 74 74 } 75 75 -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/Views/RefreshableView.cs
r7368 r7380 49 49 } 50 50 51 52 protected override void OnContentChanged() {53 base.OnContentChanged();54 if (Content == null) {55 //TODO: remove?56 } else {57 58 }59 }60 61 51 protected override void SetEnabledStateOfControls() { 62 52 base.SetEnabledStateOfControls();
Note: See TracChangeset
for help on using the changeset viewer.