Exemple #1
0
        private void grdDocuments_RowDoubleClick(object sender, Janus.Windows.GridEX.RowActionEventArgs e)
        {
            var document = grdDocuments.GetRow().DataRow as Document;

            using (var sfd = new SaveFileDialog())
            {
                sfd.FileName = document.Name;

                sfd.ShowDialog();

                var cursor = this.Cursor;
                this.Cursor = Cursors.WaitCursor;
                _portalService.DownloadDocument(document, sfd.FileName);
                this.Cursor = cursor;
            }
        }