Пример #1
0
 public void ResearchCreate(ResearchResult input)
 {
     X = input.X;
     pane.XAxis.Min = X[0];
     pane.XAxis.Max = X[X.Length - 1];
     ResearchAdd(input);
 }
Пример #2
0
        private void ResearchAddThreadMethod(object input)
        {
            int index = 0;

            Invoke(new MethodInvoker(() => { index = comboBoxMethod.SelectedIndex; }));
            Timer aTimer = new Timer();

            aTimer.Elapsed += TimerTick;
            var researchPage = input as ResearchPage;

            ProgressWatch  += researchers[index].GetResearchProgress;
            aTimer.Interval = 1;
            aTimer.Enabled  = true;
            ResearchResult result = researchers[index].GetResult(
                Single.Parse(limitA.Text),
                Single.Parse(limitB.Text),
                Double.Parse(Property1.Text),
                Double.Parse(Property2.Text)
                );

            Invoke(new MethodInvoker(() =>
            {
                researchPage.ResearchAdd(result);
                researchPage.GraphRefresh();
            }
                                     ));
            aTimer.Enabled = false;
            Invoke(new MethodInvoker(() => { toolStripProgressBar1.Value = 100; }));
            ProgressWatch -= researchers[index].GetResearchProgress;
        }
Пример #3
0
 public void ResearchAdd(ResearchResult input)
 {
     Y.Add(input.Y);
     AbsoluteError.Add(input.AbsoluteError);
     RelativeError.Add(input.RelativeError);
     names.Add(input.Name);
     GraphAdd(Count);
     maxresult.Add(new maxResultBlok(
                       input.Name,
                       pane.CurveList[pane.CurveList.Count - 1].Color,
                       input.xmax,
                       input.xmin,
                       input.max,
                       input.min,
                       this)
                   );
     maxresult.Last().index = maxresult.Count - 1;
     curseBox.Controls.Add(maxresult.Last());
     Count++;
 }
 public void ResearchCreate(ResearchResult input)
 {
     X = input.X;
     pane.XAxis.Min = X[0];
     pane.XAxis.Max = X[X.Length - 1];
     ResearchAdd(input);
 }
 public void ResearchAdd(ResearchResult input)
 {
     Y.Add(input.Y);
     AbsoluteError.Add(input.AbsoluteError);
     RelativeError.Add(input.RelativeError);
     names.Add(input.Name);
     GraphAdd(Count);
     maxresult.Add(new maxResultBlok(
                             input.Name,
                             pane.CurveList[pane.CurveList.Count - 1].Color,
                             input.xmax,
                             input.xmin,
                             input.max,
                             input.min,
                             this)
                          );
     maxresult.Last().index = maxresult.Count - 1;
     curseBox.Controls.Add(maxresult.Last());
     Count++;
 }