Example #1
0
        private void DiagramStart(SeriesChartType type)
        {
            TabPage      currentTab = mainTab.SelectedTab;
            DataGridView infoDG     = currentTab.Controls[0] as DataGridView;

            List <ExcelQuestion> selectedQuestions = new List <ExcelQuestion>();

            foreach (var rowItem in infoDG.SelectedRows.Cast <DataGridViewRow>().ToList())
            {
                selectedQuestions.Add(rowItem.Cells["question"].Value as ExcelQuestion);
            }
            var selectedProfile = Document.ProfilesListContent.SingleOrDefault(p => p.Name == currentTab.Text);

            VisualisationForm vf = new VisualisationForm();

            vf.Questions   = selectedQuestions;
            vf.Profile     = selectedProfile;
            vf.Document    = Document;
            vf.DiagramType = type;
            vf.Show();
        }
Example #2
0
 public void Visualise(Trajectory trajectory)
 {
     //OptimisationForm.Hide();
     VisualisationForm.Show();
     VisualisationForm.VisualiseTrajectory(trajectory);
 }