Exemple #1
0
            public ServiceOrderOperationViewModel(ServiceOrderDetailViewModel parent, int index, EnosixServiceOrder_OPERATIONS operation)
            {
                Guard.NotNull(() => parent, parent);
                Guard.NotNull(() => operation, operation);

                this._parent    = parent;
                this._operation = operation;
                this._index     = index;
            }
        //show the details page after we click on a service order in the list
        protected async void ShowDetailPage(ServiceOrderListViewModel.ServiceOrderListItemViewModel itemViewModel)
        {
            var detailVm = new ServiceOrderDetailViewModel(this);

            if (await detailVm.LoadFromListItem(itemViewModel))
            {
                await Navigation.PushAsync(new ServiceOrderDetailPage {
                    BindingContext = detailVm,
                });
            }
        }
Exemple #3
0
 public DayOfWeekViewModel(ServiceOrderDetailViewModel parent, int index)
 {
     Guard.NotNull(() => parent, parent);
     this._parent = parent;
     this._index  = index;
 }