public async void Delivery() { var wash = new DeliverOrdersViewModel(Model, ActionsOrderGrid); await DialogHostExtensions.ShowCaliburnVM(wash); this.OrderGrid.Refresh(0, int.MaxValue); }
public override async void Add() { var editor = new ClothEditorViewModel(_eventAggregator, _model, this.Order); await DialogHostExtensions.ShowCaliburnVM(editor); RaiseStateChanged(); }
public async void DistributeCorp() { var applyorders = new DistributeCorpOrdersViewModel(Model, ActionsOrderGrid); await DialogHostExtensions.ShowCaliburnVM(applyorders); this.OrderGrid.Refresh(0, int.MaxValue); }
public async void RecieveOrders() { var recieveOrders = new RecieveOrdersViewModel(Model, ActionsOrderGrid); await DialogHostExtensions.ShowCaliburnVM(recieveOrders); this.OrderGrid.Refresh(0, int.MaxValue); }
public async void AcceptDelivery() { var applyorders = new AcceptDeliveryViewModel(Model, ActionsOrderGrid); await DialogHostExtensions.ShowCaliburnVM(applyorders); this.OrderGrid.Refresh(0, int.MaxValue); }
public override async void Add() { var editor = new DiscountEdgeEditorViewModel(_eventAggregator, _model); await DialogHostExtensions.ShowCaliburnVM(editor); RaiseStateChanged(); }
public override async void Edit() { var editor = new ClothKindEditorViewModel(this.EventAggregator, _model); EventAggregator.PublishOnUIThread(this.SelectedEntity); await DialogHostExtensions.ShowCaliburnVM(editor); RaiseStateChanged(); }
public override async void Add() { var editor = new ClothKindEditorViewModel(this.EventAggregator, _model); editor.ClothKindParent = this.SelectedEntity; await DialogHostExtensions.ShowCaliburnVM(editor); this.Refresh(0, 0); }
/// <summary> /// Показать карточку для сущности /// </summary> /// <param name="context">сущность</param> public async void ShowInfoCard(TEntity context) { if (context != null) { _card.Entity = context; await DialogHostExtensions.ShowCaliburnVM(_card); } }
/// <summary> /// Показать карточку для выбранного в таблице объекта /// </summary> public async void ShowInfoCard() { if (SelectedEntity != null) { _card.Entity = SelectedEntity; await DialogHostExtensions.ShowCaliburnVM(_card); } }
/// <summary> /// Показать диалог удаления и вернуть соответствующее значение /// </summary> /// <returns></returns> public async Task <bool> AskQuestion() { await DialogHostExtensions.ShowCaliburnVM(this); var isDelete = this.IsDelete; IsDelete = false; return(isDelete); }
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); } }
public async void ShowSelfUserCard() { _employeeCard.Entity = CurrentEmployee; await DialogHostExtensions.ShowCaliburnVM(this._employeeCard); }
public async void OnConnectionLost() { await DialogHostExtensions.ShowCaliburnVM(_connectionLostDialog); this.Handle(Screens.Login); }