예제 #1
0
        internal async Task <stt> Find(string v1, string v2)
        {
            var agentid = Convert.ToInt32(v1);
            var data    = await ManifestServices.FindSTT(agentid, v2);

            return(data);
        }
예제 #2
0
        private async void SearchAction(object obj)
        {
            var data = await ManifestServices.FindSTT(STT);

            if (data != null && OnSearch != null)
            {
                OnSearch(data, new EventArgs());
            }
        }
예제 #3
0
        private async void Terima(object obj)
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;
            var Saved = await ManifestServices.UpdateItemAsync(Manifest);

            if (!Saved)
            {
                Manifest.RecieveOnPort = null;
            }
            IsBusy = false;
        }
예제 #4
0
        private async void RefreshAction()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;
            var result = await ManifestServices.GetItemsAsync();

            if (result != null)
            {
                foreach (var item in result)
                {
                    Source.Add(item);
                }
            }

            IsBusy = false;
        }
예제 #5
0
        private async void RefreshAction()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;
            var result = await ManifestServices.GetItemAsync(Manifest.Id.ToString());

            if (result != null)
            {
                foreach (var item in result.Items)
                {
                    Manifest.Items.Add(item);
                }
            }

            IsBusy = false;
        }