Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/12 16:46:35 (12 years ago)
Author:
gkronber
Message:

#1847: merged r8084:8205 from trunk into GP move operators branch

Location:
branches/GP-MoveOperators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-MoveOperators

  • branches/GP-MoveOperators/HeuristicLab.Clients.Access.Views/3.3/ClientViews/ClientView.cs

    r8042 r8206  
    3535
    3636    private ProgressView progressView;
     37    private Progress progress;
    3738
    3839    public ClientView() {
    3940      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);
    4059    }
    4160
     
    5877      } else {
    5978        if (Content.ClientConfiguration != null) {
    60           txtClientConfiguration.Text = Content.ClientConfiguration.Description; //??
     79          txtClientConfiguration.Text = Content.ClientConfiguration.Hash;
    6180        }
    6281        if (Content.ClientType != null) {
     
    82101        Invoke(new Action(StartProgressView));
    83102      } 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;
    89105      }
    90106    }
     
    94110        Invoke(new Action(FinishProgressView));
    95111      } else {
    96         if (progressView != null) {
    97           progressView.Finish();
    98           progressView = null;
    99           SetEnabledStateOfControls();
    100         }
     112        progress.Finish();
    101113      }
    102114    }
Note: See TracChangeset for help on using the changeset viewer.