コード例 #1
0
 internal async Task NewContainer(global::EntryDataQS.Client.Entities.ContainerEx containerEx)
 {
     BaseViewModel.Instance.CurrentContainerEx = new ContainerEx()
     {
         TrackingState = TrackingState.Added
     };
 }
コード例 #2
0
        internal async Task SaveContainer(global::EntryDataQS.Client.Entities.ContainerEx container)
        {
            if (container == null)
            {
                return;
            }
            if (CoreEntities.ViewModels.BaseViewModel.Instance.CurrentAsycudaDocumentSetEx != null)
            {
                container.AsycudaDocumentSetId =
                    CoreEntities.ViewModels.BaseViewModel.Instance.CurrentAsycudaDocumentSetEx.AsycudaDocumentSetId;
                await ContainerExRepository.Instance.SaveContainer(container).ConfigureAwait(false);

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


                MessageBox.Show("Complete");
            }
            else
            {
                MessageBox.Show("Please Select Document Set then try again.");
            }
        }