Ejemplo n.º 1
0
        public MainPage()
        {
            InitializeComponent();
            drawGrid.Init();
            PumpListData = new ObservableCollection <PumpInfo>
            {
                new PumpInfo()
                {
                    Maker = "HanBell", PartNum = "PS902", PSList = new List <PressureSpeed>
                    {
                        new PressureSpeed()
                        {
                            ValueX = 760, ValueY = 33
                        },
                        new PressureSpeed()
                        {
                            ValueX = 6.01f, ValueY = 33
                        },
                        new PressureSpeed()
                        {
                            ValueX = 6, ValueY = 257
                        },
                        new PressureSpeed()
                        {
                            ValueX = 1, ValueY = 260
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.1f, ValueY = 220
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.01f, ValueY = 164
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.001f, ValueY = 92
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.0001f, ValueY = 20
                        }
                    }
                },
                new PumpInfo()
                {
                    Maker = "LeyBold", PartNum = "WSU2001+SV630", PSList = new List <PressureSpeed>
                    {
                        new PressureSpeed()
                        {
                            ValueX = 760, ValueY = 189.6712f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 608, ValueY = 189.6712f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 456, ValueY = 191.5858f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 304, ValueY = 197.4464f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 152, ValueY = 218.3074f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 76, ValueY = 257.656f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 60.8f, ValueY = 279.213f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 45.6f, ValueY = 310.2672f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 30.4f, ValueY = 392.8629f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 15.2f, ValueY = 461.3514f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 7.6f, ValueY = 480.2635f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 6.08f, ValueY = 487.5537f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 4.56f, ValueY = 492.4752f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 3.04f, ValueY = 499.9508f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 1.52f, ValueY = 510.0951f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.76f, ValueY = 510.0951f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.608f, ValueY = 510.0951f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.456f, ValueY = 507.5399f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.304f, ValueY = 499.9508f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.152f, ValueY = 482.6814f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.076f, ValueY = 432.1946f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.0608f, ValueY = 413.0957f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.0456f, ValueY = 383.1213f
                        },
                        new PressureSpeed()
                        {
                            ValueX = 0.0304f, ValueY = 305.6279f
                        }
                    }
                }
            };

            PumpListView.ItemsSource = PumpListData;
        }