private Problem(JObject problem) { // set up config this.json = problem; // create solver connection SolverConnector = SolverConnector.Construct(json); }
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; }