コード例 #1
0
 private Problem(JObject problem)
 {
     // set up config
     this.json = problem;
     // create solver connection
     SolverConnector = SolverConnector.Construct(json);
 }
コード例 #2
0
        public MainWindow()
        {
            InitializeComponent();
            // Register available solver connectors
            SolverConnector.RegisterSolverConnectorType("local", typeof(LocalSolverConnector));

            GNUPlot.Series.RegisterSeriesType("line", typeof(GNUPlot.LineSeries));
            GNUPlot.Series.RegisterSeriesType("heatmap", typeof(GNUPlot.HeatmapSeries));


            // Populate problems list
            problems = Problem.ReadRirectory($"{ApplicationSettings.Instance.WorkingDirectory}/problems");
            ProblemsListBox.ItemsSource = problems;
        }