Ejemplo n.º 1
0
        public MachinesViewModel(IMachineService machineService, IOrderService orderService, IFilePickerService filePickerService, ICommonServices commonServices) : base(commonServices)
        {
            MachineService = machineService;

            MachineList    = new MachineListViewModel(MachineService, commonServices);
            MachineDetails = new MachineDetailsViewModel(MachineService, filePickerService, commonServices);
        }
Ejemplo n.º 2
0
 private async void OnMessage(MachineListViewModel viewModel, string message, object args)
 {
     if (viewModel == MachineList && message == "ItemSelected")
     {
         await ContextService.RunAsync(() =>
         {
             OnItemSelected();
         });
     }
 }