private void DeleteSelectedScannedDocument() { if (SelectedScannedDocument != null) { ScannedDocumentList.Remove(SelectedScannedDocument); } }
private void ClearForm() { Amount = 0; Description = ""; ScannedDocumentList.Clear(); Credits.Clear(); Debits.Clear(); }
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"); }