public Objects.Results DeSerialize(string filename)
        {
            string json = System.IO.File.ReadAllText(filename);

            Objects.Results res = Newtonsoft.Json.JsonConvert.DeserializeObject <Objects.Results>(json,
                                                                                                  new Newtonsoft.Json.JsonConverter[] { new Objects.XYZDeserializer() });

            return(res);
        }
        private void loadResults(string filename)
        {
            _results = _controller.DeSerialize(filename);

            // hoops to make it sortable
            UI.SortableBindingList <Objects.Solution> solutions = new UI.SortableBindingList <Objects.Solution>(_results.Solutions);

            lblNumSol.Text    = "Number of Solutions: " + _results.Solutions.Count;
            lblNumSol.Visible = true;

            dataGridView1.DataSource = solutions;
            dataGridView1.Update();
            loadGraph(_results.Solutions);
        }