예제 #1
0
        public async void Delivery()
        {
            var wash = new DeliverOrdersViewModel(Model, ActionsOrderGrid);
            await DialogHostExtensions.ShowCaliburnVM(wash);

            this.OrderGrid.Refresh(0, int.MaxValue);
        }
예제 #2
0
        public override async void Add()
        {
            var editor = new ClothEditorViewModel(_eventAggregator, _model, this.Order);
            await DialogHostExtensions.ShowCaliburnVM(editor);

            RaiseStateChanged();
        }
예제 #3
0
        public async void DistributeCorp()
        {
            var applyorders = new DistributeCorpOrdersViewModel(Model, ActionsOrderGrid);
            await DialogHostExtensions.ShowCaliburnVM(applyorders);

            this.OrderGrid.Refresh(0, int.MaxValue);
        }
예제 #4
0
        public async void RecieveOrders()
        {
            var recieveOrders = new RecieveOrdersViewModel(Model, ActionsOrderGrid);
            await DialogHostExtensions.ShowCaliburnVM(recieveOrders);

            this.OrderGrid.Refresh(0, int.MaxValue);
        }
예제 #5
0
        public async void AcceptDelivery()
        {
            var applyorders = new AcceptDeliveryViewModel(Model, ActionsOrderGrid);
            await DialogHostExtensions.ShowCaliburnVM(applyorders);

            this.OrderGrid.Refresh(0, int.MaxValue);
        }
예제 #6
0
        public override async void Add()
        {
            var editor = new DiscountEdgeEditorViewModel(_eventAggregator, _model);
            await DialogHostExtensions.ShowCaliburnVM(editor);

            RaiseStateChanged();
        }
예제 #7
0
        public override async void Edit()
        {
            var editor = new ClothKindEditorViewModel(this.EventAggregator, _model);

            EventAggregator.PublishOnUIThread(this.SelectedEntity);
            await DialogHostExtensions.ShowCaliburnVM(editor);

            RaiseStateChanged();
        }
예제 #8
0
        public override async void Add()
        {
            var editor = new ClothKindEditorViewModel(this.EventAggregator, _model);

            editor.ClothKindParent = this.SelectedEntity;
            await DialogHostExtensions.ShowCaliburnVM(editor);

            this.Refresh(0, 0);
        }
예제 #9
0
        /// <summary>
        /// Показать карточку для сущности
        /// </summary>
        /// <param name="context">сущность</param>
        public async void ShowInfoCard(TEntity context)
        {
            if (context != null)
            {
                _card.Entity = context;

                await DialogHostExtensions.ShowCaliburnVM(_card);
            }
        }
예제 #10
0
        /// <summary>
        /// Показать карточку для выбранного в таблице объекта
        /// </summary>
        public async void ShowInfoCard()
        {
            if (SelectedEntity != null)
            {
                _card.Entity = SelectedEntity;

                await DialogHostExtensions.ShowCaliburnVM(_card);
            }
        }
예제 #11
0
        /// <summary>
        /// Показать диалог удаления и вернуть соответствующее значение
        /// </summary>
        /// <returns></returns>
        public async Task <bool> AskQuestion()
        {
            await DialogHostExtensions.ShowCaliburnVM(this);

            var isDelete = this.IsDelete;

            IsDelete = false;
            return(isDelete);
        }
예제 #12
0
        public async void ShowClientCard()
        {
            if (this.Client != null)
            {
                var orderDataGridViewModel =
                    new OrderDataGridViewModel(_eventAggregator, this, new DeleteDialogViewModel(), _model, null);

                var clientCard = new ClientCardViewModel(this._eventAggregator, orderDataGridViewModel);
                clientCard.Entity = this.Client;
                await DialogHostExtensions.ShowCaliburnVM(clientCard);
            }
        }
예제 #13
0
 public async void ShowSelfUserCard()
 {
     _employeeCard.Entity = CurrentEmployee;
     await DialogHostExtensions.ShowCaliburnVM(this._employeeCard);
 }
예제 #14
0
        public async void OnConnectionLost()
        {
            await DialogHostExtensions.ShowCaliburnVM(_connectionLostDialog);

            this.Handle(Screens.Login);
        }