Beispiel #1
0
        void initBindings()
        {
            //解体氚测量仪
            Binding nowding1 = new Binding();

            nowding1.Source = cabInArtwork.Devices[0];
            nowding1.Path   = new PropertyPath("NowValue");
            Text1.SetBinding(TextBlock.TextProperty, nowding1);

            //1 3 号设备是pump

            ////房间氚测量仪
            Binding nowding2 = new Binding();

            nowding2.Source = cabInArtwork.Devices[2];
            nowding2.Path   = new PropertyPath("NowValue");
            Text2.SetBinding(TextBlock.TextProperty, nowding2);
        }