예제 #1
0
        void AddBindings()
        {
            Bindings.BindOneWay
            (
                () => Voltmeter.Readings.TimeStamp,
                () => LastUpdate
            )
            .RefreshTarget();

            Bindings.BindOneWay
            (
                () => Voltmeter.Readings.VoltageScale,
                () => VoltageScale
            )
            .RefreshTarget();

            Bindings.BindOneWay
            (
                () => Voltmeter.IsRunning,
                () => IsRunning
            )
            .RefreshTarget();

            Bindings.BindTwoWay
            (
                () => Voltmeter.Use10BitVoltage,
                () => Use10BitVoltage
            )
            .RefreshTarget();

            Bindings.BindTwoWay
            (
                () => Voltmeter.PollingInterval,
                () => PollingInterval
            )
            .RefreshTarget();
        }