Exemple #1
0
        public DocumentsView()
        {
            InitializeComponent();
            DataContext = _viewModel = new DocumentsViewModel();

            Loaded += OnDocumentsViewLoaded;
        }
Exemple #2
0
 public DocumentsSectionViewModel(DocumentsViewModel parentPageViewModel, long ownerId, long sectionId, string sectionTitle, bool isOwnerCommunityAdmined, bool isPickerModel)
 {
     this.Items = new GenericCollectionViewModel <DocumentsInfo, DocumentHeader>((ICollectionDataProvider <DocumentsInfo, DocumentHeader>) this);
     this._parentPageViewModel = parentPageViewModel;
     this._ownerId             = ownerId;
     this.SectionId            = sectionId;
     this.Title = sectionTitle;
     this._isOwnerCommunityAdmined = isOwnerCommunityAdmined;
     this._isPickerModel           = isPickerModel;
     EventAggregator.Current.Subscribe((object)this);
 }
        public ActionResult Documents(DocumentsViewModel vm)
        {
            var result = SaveAs(vm.File, PlatformConfiguration.DocumentsPath);

            Command.Execute(new EditContactsDocumentsCommand
            {
                Documents = ToModel(vm),
                File      = result?.File
            });

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> UploadDocument([Bind(Include = "NewDocument")] DocumentsViewModel submittedVM, HttpPostedFileBase file)
        {
            bool   documentUploadSucceeded = false;
            string failMsg = null;

            try
            {
                if (file != null && file.ContentLength > 0)
                {
                    // Validate file size here... don't let bigger than 10 MB be uploaded (Azure max is 30 MB, but that's pretty big)
                    if (file.ContentLength > 10000000)
                    {
                        documentUploadSucceeded = false;
                        failMsg = "The file is too large to be uploaded to Azure.  Max file size is 10 MB.";
                    }
                    else
                    {
                        // Upload to Azure File Storage
                        AzureBlobStorage azureBlob = new AzureBlobStorage();
                        AzureFile        azureFile = await azureBlob.UploadDocumentAsync(file, submittedVM.NewDocument);

                        // Save Document information to database
                        Document doc = new Document();
                        doc.Name      = Path.GetFileName(file.FileName);
                        doc.Url       = azureFile.Document.Url;
                        doc.Uploaded  = DateTime.Now;
                        doc.Extension = Path.GetExtension(file.FileName);
                        if (submittedVM.NewDocument != null && submittedVM.NewDocument.AudienceId != null)
                        {
                            doc.AudienceId = submittedVM.NewDocument.AudienceId;
                        }

                        long saved = Repository.Documents.Save(doc);
                        documentUploadSucceeded = saved < 1 ? false : true;
                        failMsg = "Document could not be uploaded due to an internal error.  Please contact your system administrator.";
                    }
                }
                else
                {
                    documentUploadSucceeded = false;
                    failMsg = "A valid file is required to submit the form.";
                }
            }
            catch (Exception ex)
            {
                // TODO: wire this up on the front end - show a modal when the form reloads.
                documentUploadSucceeded = false;
                failMsg = "Document could not be uploaded due to an internal error.  Please contact your system administrator.";
            }

            return(RedirectToAction("Documents", new { documentUploadSucceeded = documentUploadSucceeded, failMsg = failMsg }));
        }
 public UpsertDocument(DocumentsViewModel viewModel, string action)
 {
     InitializeComponent();
     DataContext = viewModel;
     if (action == "Insert")
     {
         Edit.Visibility = Visibility.Hidden;
     }
     else
     {
         Register.Visibility = Visibility.Hidden;
     }
 }
        public EmailViewModel()
        {
            _emailOperationScopeContext = new OperationScopeContext();
            _documentsRepository        = new EntityCollectionRepository <TDocument, Guid>();
            DocumentsDataContext        = new DocumentsViewModel <TDocument>(_emailOperationScopeContext, _documentsRepository);
            var documentsMediator = new DocumentsMediator <TDocument>(_emailOperationScopeContext, _documentsRepository);

            OperationScopeContext          = ServiceLocator.Get <OperationScopeContext>();
            _addDocumentsOperationMediator = new AddDocumentsToEmailOperationMediator <TDocument>(OperationScopeContext);
            PopulateToolbar(documentsMediator, _addDocumentsOperationMediator);
            ToEmailAddressDataContext  = new EmailAddressViewModel();
            CcEmailAddressDataContext  = new EmailAddressViewModel();
            BccEmailAddressDataContext = new EmailAddressViewModel();
        }
        public ActionResult GetPublicDocuments(int page = 1)
        {
            var model = new DocumentsViewModel();

            model.Documents = fileRepository.SearchPublicDocuments(null, string.Empty)
                              .OrderBy(d => d.DocumentID)
                              .Skip((page - 1) * PageSize)
                              .Take(PageSize);
            model.Tags     = tagRepository.GetTags() as List <Tag>;
            model.PageInfo = new PageInfo
            {
                PageNumber = page,
                PageSize   = PageSize,
                TotalItems = fileRepository.SearchPublicDocuments(null, string.Empty).Count()
            };

            return(View(model));
        }
        public IActionResult ViewDocument(int id)
        {
            var document = _context.Document.SingleOrDefault(d => d.Id == id);

            if (document != null)
            {
                var documentViewModel = new DocumentsViewModel {
                    DocumentTypeId = document.DocumentTypeId,
                    Name           = document.Name,
                    Path           = document.DocumentTypeId == (int)ProjectEnum.DocumentType.Video ? ConvertToYoutubeEmbed(document.Path) : document.Path
                };
                return(View(documentViewModel));
            }
            else
            {
                return(View("Error"));
            }
        }
Exemple #9
0
        public string Delete(Guid id)
        {
            //Guid Id = Guid.Parse(id);
            DocumentsViewModel model = new DocumentsViewModel()
            {
                Item = _cmsRepository.getDocumentsPath(id)
            };

            if (System.IO.File.Exists(Server.MapPath(model.Item.FilePath)))
            {
                System.IO.File.Delete(Server.MapPath(model.Item.FilePath));
            }
            try
            {
                _cmsRepository.deleteSiteMapDocuments(id);
                return("");
            }
            catch { return("Не удалось удалить доменное имя."); }
        }
        public DocumentsPage(Guid parendId, bool isProject = false)
        {
            folderId = parendId;

            NavigationPage.SetBackButtonTitle(this, "");
            InitializeComponent();
            BindingContext = viewModel = new DocumentsViewModel(parendId, isProject);
            //HockeyApp.MetricsManager.TrackEvent("DocumentsPage Initialize");

            if (Device.RuntimePlatform.ToLower() == "android")
            {
                ItemsListViewDroid.IsVisible = true;
                ItemsListViewiOS.IsVisible   = false;
            }
            else
            {
                ItemsListViewDroid.IsVisible = false;
                ItemsListViewiOS.IsVisible   = true;
            }
        }
        public ActionResult Edit(DocumentsViewModel documentsViewModel)
        {
            if (ModelState.IsValid)
            {
                EnclosedDocument enclosedDocument = db.EnclosedDocuments.Find(documentsViewModel.Id);
                enclosedDocument.ApplicationId = UserHelper.GetUserId(db.Users, User.Identity);
                enclosedDocument.DocumentType  = documentsViewModel.DocumentType;
                enclosedDocument.Name          = documentsViewModel.Name;
                if (documentsViewModel.DocumentFile != null)
                {
                    enclosedDocument.DocumentFile = ImageConverter.ByteArrayFromPostedFile(documentsViewModel.DocumentFile);
                }
                db.Entry(enclosedDocument).State = EntityState.Modified;

                db.SaveChanges();
                return(RedirectToAction("Index"));
            }
            ViewBag.ApplicationId = new SelectList(db.Applications, "ApplicationId", "ApplicationId", documentsViewModel.ApplicationId);
            return(View(documentsViewModel));
        }
        // GET: EnclosedDocuments/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            EnclosedDocument   enclosedDocument   = db.EnclosedDocuments.Find(id);
            DocumentsViewModel enclosedDocumentVM = new DocumentsViewModel();

            enclosedDocumentVM.ApplicationId = enclosedDocument.ApplicationId;
            enclosedDocumentVM.DocumentType  = enclosedDocument.DocumentType;
            enclosedDocumentVM.Name          = enclosedDocument.Name;
            if (enclosedDocument.DocumentFile != null)
            {
                enclosedDocumentVM.DocumentFileDB = enclosedDocument.DocumentFile;
            }

            if (enclosedDocumentVM == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ApplicationId = new SelectList(db.Applications, "ApplicationId", "ApplicationId", enclosedDocumentVM.ApplicationId);
            return(View(enclosedDocumentVM));
        }
 protected override void HandleOnNavigatedTo(NavigationEventArgs e)
 {
     base.HandleOnNavigatedTo(e);
     if (!this._isInitialized)
     {
         this._maxAllowedToSelect = int.Parse(((Page)this).NavigationContext.QueryString["MaxAllowedToSelect"]);
         long loggedInUserId = AppGlobalStateManager.Current.LoggedInUserId;
         DocumentsViewModel        parentPageViewModel = new DocumentsViewModel(loggedInUserId);
         DocumentsSectionViewModel sectionViewModel    = new DocumentsSectionViewModel(parentPageViewModel, loggedInUserId, 0, CommonResources.AllDocuments, false, true)
         {
             IsSelected = true
         };
         parentPageViewModel.Sections.Add(sectionViewModel);
         parentPageViewModel.LoadSection(0);
         base.DataContext    = parentPageViewModel;
         this._isInitialized = true;
     }
     if (e.NavigationMode != NavigationMode.Back || !ParametersRepository.Contains("FilePicked") && !ParametersRepository.Contains("PickedPhotoDocuments"))
     {
         return;
     }
     this.SkipNextNavigationParametersRepositoryClearing = true;
     Navigator.Current.GoBack();
 }
Exemple #14
0
        public DataForConstructionPermitDTO GetDataForConstructionPermit(string archiveNumber, string constructionTypeId, string municipalityId, string sendDate = null, string getDocuments = null)
        {
            ServicePointManager.ServerCertificateValidationCallback += (s, cert, chain, sslPolicyErrors) => true;
            int k;

            if (!int.TryParse(constructionTypeId, out k))
            {
                throw new ArgumentException("Погрешен идентификационен број на тип на градба:", constructionTypeId);
            }
            if (!int.TryParse(municipalityId, out k))
            {
                throw new ArgumentException("Погрешен идентификационен број на општина:", municipalityId);
            }
            if ((!string.IsNullOrEmpty(getDocuments) && getDocuments != "y") && (!string.IsNullOrEmpty(getDocuments) && getDocuments != "n"))
            {
                throw new ArgumentException("Погрешенo внесен параметар Преземи документ(y/n):", getDocuments);
            }
            var output = new DataForConstructionPermitDTO();

            try
            {
                var MZTVClient = new MZTVConstructionPermitAdapter.MzTVAdapterClient();
                _logger.Info("GetConstructionPermitData" + archiveNumber + "/" + constructionTypeId + "/" + municipalityId + "/" + sendDate);
                var outputMZTV = MZTVClient.ConsPerm(archiveNumber, constructionTypeId, municipalityId, sendDate, getDocuments);
                _logger.Info("outputMZTV");

                List <MunicipalitiesViewModel> municipalities = new List <MunicipalitiesViewModel>();
                List <string>             investors           = new List <string>();
                List <DocumentsViewModel> documents           = new List <DocumentsViewModel>();

                if (outputMZTV != null)
                {
                    if (outputMZTV.Investors.Count != 0)
                    {
                        foreach (string invest in outputMZTV.Investors)
                        {
                            investors.Add(invest);
                        }
                    }

                    if (outputMZTV.Municipalities.Length != 0)
                    {
                        for (int i = 0; i < outputMZTV.Municipalities.Length; i++)
                        {
                            if (outputMZTV.Municipalities[i].CadastreMunicipalities.Length != 0)
                            {
                                List <CadastreMunicipalitiesViewModel> cadas = new List <CadastreMunicipalitiesViewModel>();
                                for (int j = 0; j < outputMZTV.Municipalities[i].CadastreMunicipalities.Length; j++)
                                {
                                    CadastreMunicipalitiesViewModel cadM = new CadastreMunicipalitiesViewModel
                                    {
                                        Ko = outputMZTV.Municipalities[i].CadastreMunicipalities[j].Ko,
                                        Kp = outputMZTV.Municipalities[i].CadastreMunicipalities[j].Kp
                                    };
                                    cadas.Add(cadM);
                                }

                                MunicipalitiesViewModel munM = new MunicipalitiesViewModel
                                {
                                    CadastreMunicipalities = cadas,
                                    MunicipalityName       = outputMZTV.Municipalities[i].MunicipalityName
                                };
                                municipalities.Add(munM);
                            }
                        }
                    }
                    if (outputMZTV.Documents.Length != 0)
                    {
                        for (int i = 0; i < outputMZTV.Documents.Length; i++)
                        {
                            DocumentsViewModel doc = new DocumentsViewModel
                            {
                                ContentBytes = outputMZTV.Documents[i].ContentBytes,
                                FileName     = outputMZTV.Documents[i].FileName
                            };
                            documents.Add(doc);
                        }
                    }

                    output.Documents               = documents;
                    output.Investors               = investors;
                    output.Municipalities          = municipalities;
                    output.ArchiveDate             = outputMZTV.ArchiveDate.ToString();
                    output.ConstructionAddress     = outputMZTV.ConstructionAddress;
                    output.ConstructionDescription = outputMZTV.ConstructionDescription;
                    output.ConstructionTypeName    = outputMZTV.ConstructionTypeName;
                    output.EffectDate              = outputMZTV.EffectDate.ToString();
                    output.SendDate = outputMZTV.SendDate.ToString();
                    output.Status   = outputMZTV.Status;
                }
                _logger.Info("Povikot kon servisot e uspesen");

                var context     = HttpContext.Current;
                var contextBase = new HttpContextWrapper(context);
                var routeData   = new RouteData();
                routeData.Values.Add("controller", "Template");
                var controllerContext         = new ControllerContext(contextBase, routeData, new MZTVController.EmptyController());
                var dataForConstructionPermit = output;
                dataForConstructionPermit.FillBasicPrintInfo("Одобрение за градба", InstitutionName);
                var r      = new Rotativa.ViewAsPdf("PrintDataForConstructionPermit", dataForConstructionPermit);
                var binary = r.BuildPdf(controllerContext);

                var date    = DateTime.Now.Day;
                var month   = DateTime.Now.Month;
                var year    = DateTime.Now.Year;
                var hour    = DateTime.Now.Hour;
                var minutes = DateTime.Now.Minute;
                var secods  = DateTime.Now.Second;
                var namepdf = "MZTV_GetDataForConstructionPermit_" + secods + "_" + minutes + "_" + hour + "_" + date + "_" + month + "_" + year + ".pdf";
                var namexml = "MZTV_GetDataForConstructionPermit_" + secods + "_" + minutes + "_" + hour + "_" + date + "_" + month + "_" + year + ".xml";
                var path    = WebConfigurationManager.AppSettings["PathToFile"];
                output.ConstructionPermitPDF = namepdf;

                var pathpdf = path + namepdf;
                File.WriteAllBytes(pathpdf, binary);


                output.ConstructionPermitXML = namexml;
                XmlDocument    myXml = new XmlDocument();
                XPathNavigator xNav  = myXml.CreateNavigator();

                XmlSerializer x = new XmlSerializer(output.GetType());
                using (var xs = xNav.AppendChild())
                {
                    x.Serialize(xs, output);
                }

                var pathxml = path + namexml;
                File.WriteAllText(pathxml, myXml.OuterXml);
            }
            catch (Exception ex)
            {
                _logger.Error(ex.Message, "MzTV ERROR");
                throw ex;
            }
            return(output);
        }
 protected OrderDetailsViewModelBase()
 {
     OrderDocumentsScopeContext = new OperationScopeContext();
     OrderDocumentsRepository   = new EntityCollectionRepository <OrderDocument, Guid>();
     DocumentsDataContext       = new DocumentsViewModel <OrderDocument>(OrderDocumentsScopeContext, OrderDocumentsRepository);
 }
Exemple #16
0
        public int PostDocuments(DocumentsViewModel documents)
        {
            //    if (!ModelState.IsValid)
            //    {
            //        return BadRequest(ModelState);
            //    }

            try
            {
                AutoMapper.Mapper.CreateMap<DocumentsViewModel, Documents>();
                var d = AutoMapper.Mapper.Map<DocumentsViewModel, Documents>(documents);
                if (d.fileContent != null && d.fileContent.Length > 0)
                {
                    string base64 = documents.fileContent.Replace("data:image/jpeg;base64,", "");// load base 64 code to this variable from js
                    Byte[] bitmapData = new Byte[base64.Length];
                    bitmapData = Convert.FromBase64String(FixBase64Helper.FixBase64ForImage(base64));
                    d.fileContent = bitmapData;
                }
                if (documents.Id != 0)
                {
                    db.Documents.Attach(d);
                    db.Entry(d).State = EntityState.Modified;
                }
                else
                {
                    db.Documents.Add(d);
                }
                db.SaveChanges();
                return d.Id;
                //var client = new SmtpClient("smtp.gmail.com", 587)
                //{
                //    Credentials = new NetworkCredential("*****@*****.**", "pflm74616"),
                //    EnableSsl = true
                //};
                ////MailAddress from = new MailAddress("*****@*****.**");
                ////MailAddress to = new MailAddress("*****@*****.**");
                ////MailAddress cc = new MailAddress("*****@*****.**");
                ////MailMessage msg = new MailMessage("*****@*****.**", "*****@*****.**", "New ManageMe Document: " + documents.Notes, "test");
                ////msg.To.Add(cc);
                //////Stream s = null;
                //////var writer = new BinaryWriter(s);
                //////writer.Write(documents.fileContent);
                //////Attachment a = new Attachment(s, documents.Notes + ".jpeg");
                ////msg.Body = "Type: " + d.SubType.SubTypeName;
                //////msg.Attachments.Add(a);
                ////client.Send(msg);
            }
            catch (Exception ex)
            {
                    //db.Documents.Remove(db.Documents.Where(x => x.Id == documents.Id).FirstOrDefault());
                    var log = new AppLog() { LogDate = DateTime.Now, msg = ex.InnerException.Message };
                    db.AppLog.Add(log);
                    db.SaveChanges();
                throw;
                    //return Conflict();

            }
            //var b = new AppLog() { logDate = DateTime.Now, msg = "after save" };
            //db.AppLog.Add(b);
            //db.SaveChanges();
        }
        protected ContactsDocuments ToModel(DocumentsViewModel vm)
        {
            ContactsDocuments model = Mapper.Map <ContactsDocuments>(vm);

            return(model);
        }
Exemple #18
0
        public ActionResult Index(FormCollection formValues, int ItemsCount, int?p)
        {
            int?page        = p;
            int itemsOnPage = ItemsCount;

            if (formValues == null)
            {
                formValues = new FormCollection();
            }


            DocumentsSearchCriteria searchCriteria = new DocumentsSearchCriteria();

            if (!TryUpdateModel <DocumentsSearchCriteria>(searchCriteria, formValues.AllKeys))
            {
                searchCriteria = Session["doc_sc"] as DocumentsSearchCriteria;
            }
            if (searchCriteria == null)
            {
                searchCriteria = new DocumentsSearchCriteria();
            }

            DocumentsSortCriteria sortCriteria = new DocumentsSortCriteria();

            if (!TryUpdateModel <DocumentsSortCriteria>(sortCriteria, formValues.AllKeys))
            {
                sortCriteria = Session["doc_soc"] as DocumentsSortCriteria;
            }

            if (sortCriteria == null)
            {
                sortCriteria = new DocumentsSortCriteria();
            }

            DocumentsViewModel viewModel = new DocumentsViewModel()
            {
                DocumentSearchModel = new DocumentSearchViewModel()
                {
                    SearchCriteria    = searchCriteria,
                    SortCriteria      = sortCriteria,
                    SearchResults     = new PaginatedList <DocumentDetails>(_repository.SearchDocuments(searchCriteria).SortDocuments(sortCriteria).AsQueryable <DocumentDetails>(), page ?? 0, itemsOnPage),
                    IsSearchPerformed = true,
                    Categories        = _dictRepository.GetCategories().ToList(),
                    Senders           = _dictRepository.GetSenders().ToList(),
                    Types2            = _dictRepository.GetTypes2().ToList()
                }
            };


            Session["doc_sc"]  = searchCriteria;
            Session["doc_soc"] = sortCriteria;
            Session["doc_ic"]  = ItemsCount;
            Session["doc_p"]   = p;


            if (searchCriteria.CategoryID.HasValue)
            {
                viewModel.DocumentSearchModel.Types = _dictRepository.GetTypes(searchCriteria.CategoryID.Value).ToList();
            }

            return(View(viewModel));
        }
Exemple #19
0
 public DocView()
 {
     InitializeComponent();
     DataContext = new DocumentsViewModel();
 }
 public ActionResult DocumentsChangesSaved(DocumentsViewModel input)
 {
     return(View(input));
 }
Exemple #21
0
 public DocumentsPage()
 {
     InitializeComponent();
     vm             = new DocumentsViewModel(this.Navigation);
     BindingContext = vm;
 }
 private void File_Open_Command(object sender, ExecutedRoutedEventArgs e) // open in selected Rich Text Box Flow Doc
 {
     DocumentsViewModel.FileOpenInCollectionAndWindow();
 }
 private void Save_File_Command(object sender, ExecutedRoutedEventArgs e)
 {
     DocumentsViewModel.FileSaveInCollectionAndWindow();
 }
 protected override void OnInitialized()
 {
     ViewModel = new DocumentsViewModel();
     multiDeleteEditContext = new EditContext(ViewModel);
     base.OnInitialized();
 }
        private void Border_Drop(object sender, DragEventArgs e)
        {
            DocumentsViewModel model = (DocumentsViewModel)Window.GetWindow(this).DataContext;

            model.File_Drop(this, e);
        }
Exemple #26
0
 public EditorWindow(string action, DocumentsViewModel viewModel)
 {
     InitializeComponent();
     Title = action == "Insert" ? "Въвеждане на документ" : "Редакция на документ";
     EditorFrame.Navigate(new UpsertDocument(viewModel, action));
 }
Exemple #27
0
 protected override void HandleOnNavigatedTo(NavigationEventArgs e)
 {
     base.HandleOnNavigatedTo(e);
     if (!this._isInitialized)
     {
         long ownerId = 0;
         bool isOwnerCommunityAdmined = false;
         if (((Page)this).NavigationContext.QueryString.ContainsKey("OwnerId"))
         {
             ownerId = long.Parse(((Page)this).NavigationContext.QueryString["OwnerId"]);
         }
         if (((Page)this).NavigationContext.QueryString.ContainsKey("IsOwnerCommunityAdmined"))
         {
             isOwnerCommunityAdmined = bool.Parse(((Page)this).NavigationContext.QueryString["IsOwnerCommunityAdmined"]);
         }
         if (ownerId != AppGlobalStateManager.Current.LoggedInUserId && !isOwnerCommunityAdmined)
         {
             this.ApplicationBar.Buttons.Remove(this._appBarAddButton);
         }
         DocumentsViewModel parentPageViewModel = new DocumentsViewModel(ownerId);
         parentPageViewModel.Sections.Add(new DocumentsSectionViewModel(parentPageViewModel, ownerId, 0, CommonResources.Header_ShowAll, isOwnerCommunityAdmined, false));
         parentPageViewModel.LoadSection(0);
         ((FrameworkElement)this).DataContext = parentPageViewModel;
         this._isInitialized = true;
     }
     else if (ParametersRepository.Contains("FilePicked"))
     {
         FileOpenPickerContinuationEventArgs parameterForIdAndReset = ParametersRepository.GetParameterForIdAndReset("FilePicked") as FileOpenPickerContinuationEventArgs;
         StorageFile m0;
         if (parameterForIdAndReset == null)
         {
             m0 = null;
         }
         else
         {
             IReadOnlyList <StorageFile> files = parameterForIdAndReset.Files;
             m0 = files != null?Enumerable.FirstOrDefault <StorageFile>(files) : null;
         }
         StorageFile storageFile = (StorageFile)m0;
         if (storageFile == null)
         {
             return;
         }
         this.ViewModel.UploadDocuments(new List <StorageFile>()
         {
             storageFile
         });
     }
     else
     {
         if (!ParametersRepository.Contains("PickedPhotoDocuments"))
         {
             return;
         }
         List <StorageFile> parameterForIdAndReset = ParametersRepository.GetParameterForIdAndReset("PickedPhotoDocuments") as List <StorageFile>;
         if (parameterForIdAndReset == null || !Enumerable.Any <StorageFile>(parameterForIdAndReset))
         {
             return;
         }
         this.ViewModel.UploadDocuments(parameterForIdAndReset);
     }
 }
Exemple #28
0
 public Documents()
 {
     InitializeComponent();
     _DCVM            = new DocumentsViewModel();
     this.DataContext = _DCVM;
 }