コード例 #1
0
        internal async Task RemoveSelectedEntryData(
            System.Collections.Generic.List <global::EntryDataQS.Client.Entities.EntryDataEx> list)
        {
            var res = MessageBox.Show("Are you sure you want to delete all Selected Items?", "Delete selected Items",
                                      MessageBoxButton.YesNo);

            if (res == MessageBoxResult.Yes)
            {
                await EntryDataExRepository.Instance.RemoveSelectedEntryData(SelectedEntryDataEx.Select(x => x.InvoiceNo)).ConfigureAwait(false);

                MessageBus.Default.BeginNotify(CoreEntities.MessageToken.AsycudaDocumentsChanged, null,
                                               new NotificationEventArgs(CoreEntities.MessageToken.AsycudaDocumentsChanged));

                MessageBus.Default.BeginNotify(CoreEntities.MessageToken.AsycudaDocumentSetExsChanged, null,
                                               new NotificationEventArgs(CoreEntities.MessageToken.AsycudaDocumentSetExsChanged));

                MessageBus.Default.BeginNotify(CounterPointQS.MessageToken.CounterPointPOsChanged, null,
                                               new NotificationEventArgs(CounterPointQS.MessageToken.CounterPointPOsChanged));

                MessageBus.Default.BeginNotify(MessageToken.EntryDataExChanged, null,
                                               new NotificationEventArgs(MessageToken.EntryDataExChanged));

                MessageBus.Default.BeginNotify(MessageToken.EntryDataExFilterExpressionChanged, null,
                                               new NotificationEventArgs(MessageToken.EntryDataExFilterExpressionChanged));

                MessageBox.Show("Complete");

                //EntryDataEx.Refresh();
            }
        }