Ejemplo n.º 1
0
        private async void dtpStartDate_ValueChanged(object sender, EventArgs e)
        {
            var startDate = dtpStartDate.Value.ToUnixEpoch();

            this.Cursor = Cursors.WaitCursor;

            try
            {
                _ticket = await Session.GetTikectAsync();

                var elements = await DokuFlexService.GetScanHistoryAsync(_ticket, startDate);

                listView.Items.Clear();

                foreach (var element in elements)
                {
                    if (String.IsNullOrWhiteSpace(element.id))
                    {
                        continue;
                    }

                    AddToListView(element);
                }
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }