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); } }
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(); } }