コード例 #1
0
 private void DeleteSelectedScannedDocument()
 {
     if (SelectedScannedDocument != null)
     {
         ScannedDocumentList.Remove(SelectedScannedDocument);
     }
 }
コード例 #2
0
 private void ClearForm()
 {
     Amount      = 0;
     Description = "";
     ScannedDocumentList.Clear();
     Credits.Clear();
     Debits.Clear();
 }
コード例 #3
0
        private void CreateScannedDocumentItem(string path)
        {
            byte[] file = File.ReadAllBytes(path);

            string[] temp     = path.Split('\\');
            string   fileName = temp[temp.Length - 1].Replace(".pdf", "").Replace(".PDF", "");

            ScannedDocument scannedDocument = new ScannedDocument
            {
                Content      = file,
                Date         = DateTime.Now,
                FileName     = fileName,
                RefBookingId = 1,
                Path         = path
            };

            ScannedDocumentList.Add(scannedDocument);
            RaisePropertyChanged("ScannedDocuments");
        }