Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/04/19 14:45:47 (5 years ago)
Author:
mkommend
Message:

#2845: Merged 16430 into stable.

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Analysis.Statistics.Views/3.3/ChartAnalysisView.cs

    r15584 r17062  
    173173
    174174    private void addLineToChart_Click(object sender, EventArgs e) {
    175       MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Adding fitted lines to charts...");
     175      Progress.Show(this, "Adding fitted lines to charts...", ProgressMode.Indeterminate);
    176176
    177177      string resultName = (string)dataTableComboBox.SelectedItem;
     
    181181
    182182      task.ContinueWith((t) => {
    183         MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
     183        Progress.Hide(this);
    184184        ErrorHandling.ShowErrorDialog("An error occured while adding lines to charts. ", t.Exception);
    185185      }, TaskContinuationOptions.OnlyOnFaulted);
    186186
    187187      task.ContinueWith((t) => {
    188         MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
     188        Progress.Hide(this);
    189189      }, TaskContinuationOptions.OnlyOnRanToCompletion);
    190190    }
     
    273273      var task = Task.Factory.StartNew(() => {
    274274        sem.Wait();
    275         progress = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Calculating values...");
     275        progress = Progress.Show(this, "Calculating values...");
    276276        RebuildDataTable(resultName, rowName);
    277277      });
    278278
    279279      task.ContinueWith((t) => {
    280         MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
     280        Progress.Hide(this);
    281281        ErrorHandling.ShowErrorDialog("An error occured while calculating values. ", t.Exception);
    282282        sem.Release();
     
    284284
    285285      task.ContinueWith((t) => {
    286         MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
     286        Progress.Hide(this);
    287287        sem.Release();
    288288      }, TaskContinuationOptions.OnlyOnRanToCompletion);
  • stable/HeuristicLab.Analysis.Statistics.Views/3.3/StatisticalTestsView.cs

    r15584 r17062  
    356356
    357357      if (data != null && data.All(x => x != null)) {
    358         MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>()
    359           .AddOperationProgressToView(this, "Calculating...");
     358        Progress.Show(this, "Calculating...", ProgressMode.Indeterminate);
    360359
    361360        string curItem = (string)groupCompComboBox.SelectedItem;
     
    369368      CalculatePairwiseTest(groupName);
    370369
    371       MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
     370      Progress.Hide(this);
    372371    }
    373372
     
    377376        return;
    378377
    379       MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().AddOperationProgressToView(pairwiseTestGroupBox, "Calculating...");
     378      Progress.ShowOnControl(pairwiseTestGroupBox, "Calculating...", ProgressMode.Indeterminate);
    380379      Task.Factory.StartNew(() => CalculatePairwiseAsync(groupName));
    381380    }
     
    384383      CalculatePairwiseTest(groupName);
    385384
    386       MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(pairwiseTestGroupBox);
     385      Progress.HideFromControl(pairwiseTestGroupBox);
    387386    }
    388387
Note: See TracChangeset for help on using the changeset viewer.