Beispiel #1
0
        private void DownloadImage(string name)
        {
            // Download the image from the server and put it in the raster image viewer
            SharePointDownloadUploadDialog dlg = new SharePointDownloadUploadDialog(
                _serverProperties,
                _codecs,
                name,
                null);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                SetViewerImage(dlg.ImageServerName, dlg.RasterImage, name);
            }
        }
Beispiel #2
0
        private void UploadImage()
        {
            // Download the image from the server and put it in the raster image viewer
            SharePointDownloadUploadDialog dlg = new SharePointDownloadUploadDialog(
                _serverProperties,
                _codecs,
                _lastImageName,
                _viewerControl.RasterImage);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                // Refresh the server
                RefreshServer();
            }
        }