示例#1
0
        protected override async void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            imageList16.Images.Add(ImageResources.FileExtensionDocSmall);
            imageList16.Images.Add(ImageResources.FileExtensionPpsSmall);
            imageList16.Images.Add(ImageResources.FileExtensionXlsSmall);

            this.Cursor = Cursors.WaitCursor;

            try
            {
                var recents = await DokuFlexService.GetRecentDocumentsAsync(_ticket, _filterText);

                foreach (var item in recents)
                {
                    AddToListView(item);
                }
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }