private async void UploadDocument_Executed(object sender, ExecutedRoutedEventArgs e) { var model = new DocumentUploadModel() { Locations = AppModel.Current.GetSelectedRepairDocumentLocations(), }; var dialog = new DocumentUploadDialog(model); if (!dialog.ShowDialog().GetValueOrDefault()) { return; } string temp = await AppModel.Current.UploadDocumentAsync(model.SourceFilename, model.Location.Context, model.Location.Id, model.DestinationPath, model.Note); MessageBox.Show(temp, "Temporary upload response..."); }
public DocumentUploadDialog(DocumentUploadModel model) { InitializeComponent(); DataContext = this.model = model; }