Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/MenuItems/ImportJsonTemplateMenuItem.cs @ 17530

Last change on this file since 17530 was 17342, checked in by dpiringe, 5 years ago

#3026

  • in JsonItem:
    • renamed property Default to Value
    • removed usage of Reference for ValueLookupParameter
    • created new property ActualName for the actual name and using property Value for the value of an ValueLookupParameter
  • fixed a bug in ValueTypeMatrixConverter -> now it correctly resizes ValueTypeMatrix<T>
  • fixed a bug in ValueParameterConverter -> when ActualValue is null, but there is data for it, a new instance will get created
File size: 786 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using HeuristicLab.Common;
7using HeuristicLab.MainForm;
8using HeuristicLab.Optimizer;
9
10namespace HeuristicLab.JsonInterface.OptimizerIntegration.MenuItems {
11  internal class ImportJsonTemplateMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IOptimizerUserInterfaceItemProvider {
12    public override string Name {
13      get { return "Json-Template..."; }
14    }
15    public override IEnumerable<string> Structure {
16      get { return new string[] { "&File", "&Import" }; }
17    }
18    public override int Position {
19      get { return 1501; }
20    }
21
22    public override void Execute() {
23      FileManager.ImportJsonTemplate();
24    }
25  }
26}
Note: See TracBrowser for help on using the repository browser.