Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 19:53:35 (8 years ago)
Author:
gkronber
Message:

#2520 changed optimizer to use new persistence per default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Optimizer/3.3/FileManager.cs

    r14185 r14930  
    7878        if (view == null)
    7979          ErrorHandling.ShowErrorDialog("There is no view for the loaded item. It cannot be displayed.", new InvalidOperationException("No View Available"));
    80       }
    81       catch (Exception ex) {
     80      } catch (Exception ex) {
    8281        ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm, "Cannot open file.", ex);
    83       }
    84       finally {
     82      } finally {
    8583        ((MainForm.WindowsForms.MainForm)MainFormManager.MainForm).ResetAppStartingCursor();
    8684      }
     
    10199          MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().SetAppStartingCursor();
    102100          SetSaveOperationProgressInContentViews(content, true);
    103           ContentManager.SaveAsync(content, content.Filename, true, SavingCompleted);
     101          ContentManager.SaveAsync(content, content.Filename, SavingCompleted);
    104102        }
    105103      }
     
    118116          saveFileDialog.Title = "Save Item";
    119117          saveFileDialog.DefaultExt = "hl";
    120           saveFileDialog.Filter = "Uncompressed HeuristicLab Files|*.hl|HeuristicLab Files|*.hl|All Files|*.*";
    121           saveFileDialog.FilterIndex = 2;
     118          saveFileDialog.Filter = "HeuristicLab Files|*.hl|All Files|*.*";
     119          saveFileDialog.FilterIndex = 1;
    122120        }
    123121
     
    133131          MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().SetAppStartingCursor();
    134132          SetSaveOperationProgressInContentViews(content, true, saveFileDialog.FileName);
    135           if (saveFileDialog.FilterIndex == 1) {
    136             ContentManager.SaveAsync(content, saveFileDialog.FileName, false, SavingCompleted);
    137           } else {
    138             ContentManager.SaveAsync(content, saveFileDialog.FileName, true, SavingCompleted);
    139           }
     133          ContentManager.SaveAsync(content, saveFileDialog.FileName, SavingCompleted);
    140134        }
    141135      }
     
    145139        if (error != null) throw error;
    146140        MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().UpdateTitle();
    147       }
    148       catch (Exception ex) {
     141      } catch (Exception ex) {
    149142        ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm, "Cannot save file.", ex);
    150       }
    151       finally {
     143      } finally {
    152144        SetSaveOperationProgressInContentViews(content, false);
    153145        MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().ResetAppStartingCursor();
Note: See TracChangeset for help on using the changeset viewer.