Exemple #1
0
        private void Model_evtPCRReadingsStarted()
        {


            graphPCR.Clear();
            graphPCR2.Clear(); graphPCR3.Clear(); graphPCR4.Clear();
            graphPCR5.Clear();
            graphPCR6.Clear(); graphPCR7.Clear(); graphPCR8.Clear();
            graphPCRCycle = 0;


            pcrplotter.Children.RemoveAll(typeof(LineGraph));
            pcrplotter3.Children.RemoveAll(typeof(LineGraph));
            graphPCR = new PCRPointCollection();
            graphPCR2 = new PCRPointCollection();
            graphPCR3 = new PCRPointCollection();
            graphPCR4 = new PCRPointCollection();
            graphPCR5 = new PCRPointCollection();
            graphPCR6 = new PCRPointCollection();
            graphPCR7 = new PCRPointCollection();
            graphPCR8 = new PCRPointCollection();

            var dsPCR = new EnumerableDataSource<PCRPoint>(graphPCR);
            dsPCR.SetXMapping(x => (double)x.Cycle);
            dsPCR.SetYMapping(y => y.Reading);

            pcrplotter.AddLineGraph(dsPCR, Colors.Green, 1, " ");

            var dsPCR2 = new EnumerableDataSource<PCRPoint>(graphPCR2);
            dsPCR2.SetXMapping(x => (double)x.Cycle);
            dsPCR2.SetYMapping(y => y.Reading);

            pcrplotter.AddLineGraph(dsPCR2, Colors.Red, 1, " ");

            var dsPCR3 = new EnumerableDataSource<PCRPoint>(graphPCR3);
            dsPCR3.SetXMapping(x => (double)x.Cycle);
            dsPCR3.SetYMapping(y => y.Reading);

            pcrplotter.AddLineGraph(dsPCR3, Colors.Blue, 1, " ");

            var dsPCR4 = new EnumerableDataSource<PCRPoint>(graphPCR4);
            dsPCR4.SetXMapping(x => (double)x.Cycle);
            dsPCR4.SetYMapping(y => y.Reading);

            pcrplotter.AddLineGraph(dsPCR4, Colors.Brown, 1, " ");

            var dsPCR5 = new EnumerableDataSource<PCRPoint>(graphPCR5);
            dsPCR5.SetXMapping(x => (double)x.Cycle);
            dsPCR5.SetYMapping(y => y.Reading);

            pcrplotter3.AddLineGraph(dsPCR5, Colors.Green, 1, " ");

            var dsPCR6 = new EnumerableDataSource<PCRPoint>(graphPCR6);
            dsPCR6.SetXMapping(x => (double)x.Cycle);
            dsPCR6.SetYMapping(y => y.Reading);

            pcrplotter3.AddLineGraph(dsPCR6, Colors.Red, 1, " ");

            var dsPCR7 = new EnumerableDataSource<PCRPoint>(graphPCR7);
            dsPCR7.SetXMapping(x => (double)x.Cycle);
            dsPCR7.SetYMapping(y => y.Reading);

            pcrplotter3.AddLineGraph(dsPCR7, Colors.Blue, 1, " ");

            var dsPCR8 = new EnumerableDataSource<PCRPoint>(graphPCR8);
            dsPCR8.SetXMapping(x => (double)x.Cycle);
            dsPCR8.SetYMapping(y => y.Reading);

            pcrplotter3.AddLineGraph(dsPCR8, Colors.Brown, 1, " ");
        }
 private void Model_evtPCRReadingsStarted()
 {
     graphPCR.Clear();
     graphPCR2.Clear(); graphPCR3.Clear(); graphPCR4.Clear();
     graphPCRCycle = 0;
 }