Barcodes speichern
This commit is contained in:
@@ -7,19 +7,21 @@ namespace Jugenddienst_Stunden.ViewModels {
|
||||
internal class AboutViewModel {
|
||||
public string Title => AppInfo.Name;
|
||||
public string Version => AppInfo.VersionString;
|
||||
public string MoreInfoUrl => "https://aka.ms/maui";
|
||||
public string Message => "This app is written in XAML and C# with .NET MAUI.";
|
||||
public ICommand ShowMoreInfoCommand { get; }
|
||||
|
||||
public string Message => "Scanne den QR-Code von deinem Benutzerprofil auf der Stundenseite.";
|
||||
|
||||
|
||||
|
||||
public AboutViewModel() {
|
||||
ShowMoreInfoCommand = new AsyncRelayCommand(ShowMoreInfo);
|
||||
}
|
||||
|
||||
async Task ShowMoreInfo() =>
|
||||
await Launcher.Default.OpenAsync(MoreInfoUrl);
|
||||
|
||||
//private void BarcodesDetected(object sender, ZXing.Net.Maui.BarcodeDetectionEventArgs e) {
|
||||
// var first = e.Results?.FirstOrDefault();
|
||||
// if (first is null) {
|
||||
// return;
|
||||
// }
|
||||
// System.Windows.Application.Current.Dispatcher.DispatchAsync(async () => {
|
||||
// await DisplayAlert("Scan-Ergebnis", $"Barcode: {first.Value}", "OK");
|
||||
// });
|
||||
//}
|
||||
|
||||
//private async void SetupBarcodeScanner() {
|
||||
// try {
|
||||
@@ -44,7 +46,7 @@ namespace Jugenddienst_Stunden.ViewModels {
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user