예제 #1
0
        private WateringTimerViewController(DeviceDetailViewModel device, Action <IEnumerable <PumpViewModel>, int> waterSelectedStations) : base()
        {
            ExceptionUtility.Try(() =>
            {
                this._device = device;
                this.Initialize();

                if (waterSelectedStations != null)
                {
                    this._waterSelectedStations = WeakReferenceUtility.MakeWeakAction(waterSelectedStations);
                }
            });
        }
예제 #2
0
        private CircuitsTimerViewController(DeviceDetailViewModel device, Action <int> testSelectedCircuits) : base()
        {
            ExceptionUtility.Try(() =>
            {
                //this._device = device;
                this.Initialize();

                if (testSelectedCircuits != null)
                {
                    this._testSelectedCircuits = WeakReferenceUtility.MakeWeakAction(testSelectedCircuits);
                }
            });
        }