Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/20/20 16:36:05 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • fixed a bug in BaseConverter -> the range for percent values should be returned correctly now
  • fixed a bug in ConstrainedValueParameterConverter, ParameterizedItemConverter, ValueParameterConverter -> unsupported json items get filtered now
  • JCGenerator is now a dynamic class and can return all JsonItems for an IOptimizer now (instead of string only) + it is now possible to generate an template string with an IEnumerable<JsonItem>
  • added first version of an export dialog for JsonInterface
    • it is organized with a main view (for the dialog) and some user controls (for a better visualization of an JsonItem -> to reduce wrong user inputs)
    • the user controls inherit a base control, which organizes some base values of an JsonItem
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/FileManager.cs

    r17394 r17404  
    1313
    1414namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    15   internal  static class FileManager {
     15  internal static class FileManager {
    1616    private static SaveFileDialog saveFileDialog;
    1717    private static OpenFileDialog openFileDialog;
     18    private static ExportJsonDialog exportDialog = new ExportJsonDialog();
    1819
    1920    public static void ExportJsonTemplate() {
     
    2324      }
    2425    }
    25     public static void ExportJsonTemplate(IContentView view) { 
     26    public static void ExportJsonTemplate(IContentView view) {
    2627      // TODO: view to select free params, warning if no results are generated
     28     
     29
     30
    2731      IStorableContent content = view.Content as IStorableContent;
    2832      if (!view.Locked && content != null) {
     33        exportDialog.Content = content;
     34        exportDialog.ShowDialog();
     35        /*
    2936        if (saveFileDialog == null) {
    3037          saveFileDialog = new SaveFileDialog();
     
    4754          File.WriteAllText(saveFileDialog.FileName, JCGenerator.GenerateTemplate(alg));
    4855        }
     56        */
    4957      }
    5058    }
Note: See TracChangeset for help on using the changeset viewer.