Ignore:
Timestamp:
08/21/13 23:08:47 (8 years ago)
Author:
ascheibe
Message:

#1042

  • applied mkommends progress view patch
  • adapted Hive views accordingly
  • made some minor improvements (more to come...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs

    r9456 r9893  
    4545    public OptimizerHiveTaskView() {
    4646      InitializeComponent();
    47       progress = new Progress() {
    48         CanBeCanceled = false,
    49         ProgressState = ProgressState.Finished
    50       };
     47      progress = new Progress();
    5148    }
    5249
     
    7067      Content.IsControllableChanged -= new EventHandler(Content_IsControllableChanged);
    7168      if (progressView != null) {
    72         progressView.Content = null;
    7369        progressView.Dispose();
    7470        progressView = null;
     
    110106
    111107    private void PauseTaskAsync() {
    112       progress.Status = "Pausing task. Please be patient for the command to take effect.";
    113       progress.ProgressState = ProgressState.Started;
     108      progress.Start("Pausing task. Please be patient for the command to take effect.");
    114109      Content.Pause();
    115110      progress.Finish();
     
    117112
    118113    private void StopTaskAsync() {
    119       progress.Status = "Stopping task. Please be patient for the command to take effect.";
    120       progress.ProgressState = ProgressState.Started;
     114      progress.Start("Stopping task. Please be patient for the command to take effect.");
    121115      Content.Stop();
    122116      progress.Finish();
     
    124118
    125119    private void ResumeTaskAsync() {
    126       progress.Status = "Resuming task. Please be patient for the command to take effect.";
    127       progress.ProgressState = ProgressState.Started;
     120      progress.Start("Resuming task. Please be patient for the command to take effect.");
    128121      Content.Restart();
    129122      progress.Finish();
Note: See TracChangeset for help on using the changeset viewer.