Пример #1
0
        private void PlotTable(object sender, EventArgs e)
        {
            string test =
                @"<?xml version=""1.0""?>
				  <?xml-stylesheet href=""JSBSim.xsl"" type=""application/xml""?>
				  <table>
                          <independentVar>aero/alpha-rad</independentVar>
                          <tableData>
                              -0.2000	-0.6800	
                              0.0000	0.1000	
                              0.0100	1.0000	
                              0.1500	1.5000	
                              0.2000	1.7000	
                              0.2300	1.4000	
                              0.3000	1.0000
                              0.4000	0.9000
                              0.5000	0.7000
                              0.6000	0.6000
                          </tableData>
				</table>"                ;

            JSBSim.InputOutput.PropertyManager propMngr = new JSBSim.InputOutput.PropertyManager();
            ClassWithPropertiesForTables       class1   = new ClassWithPropertiesForTables("", propMngr);

            XmlElement elem  = BuildXmlConfig(test);
            Table      table = new Table(propMngr, elem);

            displayForm = new PlotTable();
            displayForm.Plot(table);
            displayForm.ShowDialog();
        }
Пример #2
0
 private void PlotTest(object sender, EventArgs e)
 {
     displayForm = new PlotTable();
     displayForm.PlotTest();
     displayForm.ShowDialog();
 }