//Contructor
        public AddVegetableViewModel(IFrameNavigation frameNavagationService, IGrowableItemData growableItemService)
        {
            this.growableItemService    = growableItemService;
            this.frameNavagationService = frameNavagationService;

            LoadCommands();
        }
Example #2
0
        //Contructor
        public UpdateVegetableViewModel(IFrameNavigation frameNavagationService, IGrowableItemData growableItemService)
        {
            this.growableItemService    = growableItemService;
            this.frameNavagationService = frameNavagationService;

            LoadCommands();

            Messenger.Default.Register <GrowableItem>(this, OnVegetableReceived, "UPDATE");
        }
        //Contructor
        public MainPageViewModel(IFrameNavigation frameNavagationService, IGrowableItemData growableItemService)
        {
            this.growableItemService    = growableItemService;
            this.frameNavagationService = frameNavagationService;

            LoadData();

            LoadCommands();

            Messenger.Default.Register <GrowableItem>(this, OnGrowableItemReceived, "SAVE");
        }
        //Contructor
        public SpectatorScreenViewModel(IFrameNavigation frameNavagationService, IGrowableItemData growableItemService, ISensorTypeData sensorTypeDataService)
        {
            this.sensorTypeDataService  = sensorTypeDataService;
            this.growableItemService    = growableItemService;
            this.frameNavagationService = frameNavagationService;

            LoadData();

            LoadCommands();

            Messenger.Default.Register <GrowableItem>(this, OnGrowableItemReceived, "SAVE");
        }
 public void Init()
 {
     growableItemDataSerivce = new MockGrowableItemDataService();
     frameNavigationService  = new MockFrameNavigationService();
 }