Exemple #1
0
        public UploadResultList UploadWithDialog(UploadRequestList objUploadRequests, UploadDialogSettings objUploadDialogSettings)
        {
            if (objUploadRequests == null)
            {
                throw new ArgumentNullException("objUploadRequests", "A valid non-null UploadRequestList is expected");
            }

            UploadResultList objUploadResults = UploadDialog.ShowDialog(objUploadRequests, objUploadDialogSettings);

            return(objUploadResults);
        }
Exemple #2
0
        public static UploadResultList ShowDialog(UploadRequestList objUploadRequests, UploadDialogSettings objUploadDialogSettingss)
        {
            if (objUploadRequests == null)
            {
                throw new ArgumentNullException("objUploadRequests", "A valid non-null UploadRequestList is expected");
            }
            if (objUploadDialogSettingss == null)
            {
                throw new ArgumentNullException("objUploadDialogSettingss", "A valid non-null UploadDialogSettings is expected");
            }

            UploadResultList objUploadResults = null;

            using (UploadDialog objFileUploadDialog = new UploadDialog())
            {
                objUploadResults = objFileUploadDialog.ShowDialogWithResult(objUploadRequests, objUploadDialogSettingss);
            }

            return(objUploadResults);
        }