- Timestamp:
- 07/03/12 16:46:35 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:mergeinfo changed
/trunk/sources merged: 8084,8088-8090,8092-8100,8102-8113,8115,8117-8132,8134-8146,8148-8156,8158-8160,8163-8170,8173-8176,8178-8190,8192-8205
- Property svn:mergeinfo changed
-
branches/GP-MoveOperators/HeuristicLab.Clients.Access.Views/3.3/ClientViews/ClientView.cs
r8042 r8206 35 35 36 36 private ProgressView progressView; 37 private Progress progress; 37 38 38 39 public ClientView() { 39 40 InitializeComponent(); 41 progress = new Progress() { 42 CanBeCanceled = false, 43 ProgressState = ProgressState.Finished 44 }; 45 } 46 47 protected override void DeregisterContentEvents() { 48 if (progressView != null) { 49 progressView.Content = null; 50 progressView.Dispose(); 51 progressView = null; 52 } 53 base.DeregisterContentEvents(); 54 } 55 56 protected override void RegisterContentEvents() { 57 base.RegisterContentEvents(); 58 progressView = new ProgressView(this, progress); 40 59 } 41 60 … … 58 77 } else { 59 78 if (Content.ClientConfiguration != null) { 60 txtClientConfiguration.Text = Content.ClientConfiguration. Description; //??79 txtClientConfiguration.Text = Content.ClientConfiguration.Hash; 61 80 } 62 81 if (Content.ClientType != null) { … … 82 101 Invoke(new Action(StartProgressView)); 83 102 } else { 84 if (progressView == null) { 85 IProgress prog = new Progress(); 86 prog.Status = "Downloading client information. Please be patient."; 87 progressView = new ProgressView(this, prog); 88 } 103 progress.Status = "Downloading client information. Please be patient."; 104 progress.ProgressState = ProgressState.Started; 89 105 } 90 106 } … … 94 110 Invoke(new Action(FinishProgressView)); 95 111 } else { 96 if (progressView != null) { 97 progressView.Finish(); 98 progressView = null; 99 SetEnabledStateOfControls(); 100 } 112 progress.Finish(); 101 113 } 102 114 }
Note: See TracChangeset
for help on using the changeset viewer.