Changeset 4433 for branches/OKB/HeuristicLab.Clients.OKB-3.3/Views
- Timestamp:
- 09/19/10 05:25:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/AdministratorView.cs
r4426 r4433 39 39 40 40 protected override void DeregisterContentEvents() { 41 // ... 41 Content.Refreshing -= new EventHandler(Content_Refreshing); 42 Content.Refreshed -= new EventHandler(Content_Refreshed); 42 43 base.DeregisterContentEvents(); 43 44 } 45 44 46 protected override void RegisterContentEvents() { 45 47 base.RegisterContentEvents(); 46 // ... 48 Content.Refreshing += new EventHandler(Content_Refreshing); 49 Content.Refreshed += new EventHandler(Content_Refreshed); 47 50 } 48 51 … … 65 68 } 66 69 70 private void Content_Refreshing(object sender, EventArgs e) { 71 if (InvokeRequired) { 72 Invoke(new EventHandler(Content_Refreshing), sender, e); 73 } else { 74 Enabled = false; 75 Cursor = Cursors.AppStarting; 76 } 77 } 78 private void Content_Refreshed(object sender, EventArgs e) { 79 if (InvokeRequired) { 80 Invoke(new EventHandler(Content_Refreshed), sender, e); 81 } else { 82 algorithmClassCollectionView.Content = Content.AlgorithmClasses; 83 algorithmCollectionView.Content = Content.Algorithms; 84 Cursor = Cursors.Default; 85 Enabled = true; 86 } 87 } 88 67 89 private void refreshButton_Click(object sender, EventArgs e) { 68 90 Content.Refresh();
Note: See TracChangeset
for help on using the changeset viewer.