Exemple #1
0
 private void btnPlotSource_Click(object sender, EventArgs e)
 {
     try
     {
         NugenCCalc2D nugenCCalc2D = new NugenCCalc2D();
         nugenCCalc2D.ChartControl = chart;
         nugenCCalc2D.FunctionParameters = new Explicit2DParameters(txtExplicitFunction.Text);
         nugenCCalc2D.Plot();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "MathX Demo", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
 }
Exemple #2
0
        private void CreateAndInitChartControl()
        {
            c1Chart = (Control)Assembly.LoadWithPartialName("C1.Win.C1Chart, Culture=neutral, PublicKeyToken=a22e16972c085838").CreateInstance("C1.Win.C1Chart.C1Chart");
            ((System.ComponentModel.ISupportInitialize)(this.c1Chart)).BeginInit();
            c1Chart.Location = new System.Drawing.Point(8, 8);
            c1Chart.Name     = "c1Chart1";
            ((System.ComponentModel.ISupportInitialize)(this.c1Chart)).EndInit();

            panel2.Controls.Add(c1Chart);
            c1Chart.Dock                      = DockStyle.Fill;
            this.components                   = new System.ComponentModel.Container();
            this.nugenCCalcComponent1         = new Genetibase.MathX.NugenCCalc.NugenCCalc2D(this.components);
            nugenCCalcComponent1.ChartControl = c1Chart;
            this.Refresh();
            this.Update();
        }
		private void CreateAndInitChartControl()
		{
			c1Chart = (Control)Assembly.LoadWithPartialName("C1.Win.C1Chart, Culture=neutral, PublicKeyToken=a22e16972c085838").CreateInstance("C1.Win.C1Chart.C1Chart");
			((System.ComponentModel.ISupportInitialize)(this.c1Chart)).BeginInit();
			c1Chart.Location = new System.Drawing.Point(8, 8);
			c1Chart.Name = "c1Chart1";
			((System.ComponentModel.ISupportInitialize)(this.c1Chart)).EndInit();

			panel2.Controls.Add(c1Chart);
			c1Chart.Dock = DockStyle.Fill;
			this.components = new System.ComponentModel.Container();
			this.nugenCCalcComponent1 = new Genetibase.MathX.NugenCCalc.NugenCCalc2D(this.components);
			nugenCCalcComponent1.ChartControl = c1Chart;
			this.Refresh();
			this.Update();
		}