-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hintergrundfunktionen: + Änderung: Text "Sprachauswahl" ist keine Frage mehr. Anpassung der Funktion erfolgt später: Die Sprache soll zwar änderbar sein, jedoch erfolgt die Einstellung aus Omni heraus. + Änderung: Es werden Standardmäßig nur Aufträge mit dem Status "In Bearbeitung" angezeigt und nicht mehr alle. Dies kann über die Filterfunktion geändert werden. + Neue Funktion: Neue Einstellung: "Temporäre Berichtdateien löschen". Löscht alle editierbaren *_.pdf und *.pdf Dateien aus den Berichtverzeichnissen und behält nur die *_final.pdf* Dateien nach Fertigstellung. Ein Abschalten belässt diese Berichtdateien im Pfad. + Fehlerbehebung: InfoBar: "geöffneten Bericht wieder schließen" und Fortschrittverhinderung wenn dieser noch geöffnet ist. Dies verhindert ein "Steckenbleiben" wegen einer Zugriffsverweigerung auf die geöffnete PDF Datei. + Fehlerbehebung: "Schritt-Icon's" im linken Menüband (Häuschen-Icon und 1,2,3 - Icons) sind nicht mehr zur Navigation vorgesehen. Dies verhindert ein Springen zwischen Schritten wenn der Kartenleser noch beschäftigt ist. + Fehlerbehebung: Solange ein Bericht geöffnet ist, kann nicht von Schritt 2 auf Schritt 3 gewechselt werden. + Fehlerbehebung: Ein Prüfvorgang kann nicht gestartet werden, wenn der Bericht bereits exitiert und nicht überschrieben werden kann oder werden soll.
- Loading branch information
Showing
22 changed files
with
819 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
using CommunityToolkit.Mvvm.ComponentModel; | ||
using CommunityToolkit.Mvvm.Input; | ||
|
||
using Microsoft.UI.Xaml; | ||
|
||
using CardCheckAssistant.Views; | ||
|
||
using Log4CSharp; | ||
|
||
using System.Windows.Input; | ||
|
||
namespace CardCheckAssistant.ViewModels; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public class AboutPageViewModel : ObservableObject | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public AboutPageViewModel() | ||
{ | ||
NextStepCanExecute = false; | ||
GoBackCanExecute = true; | ||
} | ||
|
||
#region ObservableObjects | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public bool NextStepCanExecute | ||
{ | ||
get => _nextStepCanExecute; | ||
set => SetProperty(ref _nextStepCanExecute, value); | ||
} | ||
private bool _nextStepCanExecute; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public bool GoBackCanExecute | ||
{ | ||
get => _goBackCanExecute; | ||
set => SetProperty(ref _goBackCanExecute, value); | ||
} | ||
private bool _goBackCanExecute; | ||
|
||
#endregion | ||
|
||
#region Commands | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public ICommand PostPageLoadedCommand => new AsyncRelayCommand(PostPageLoadedCommand_Executed); | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public ICommand NavigateNextStepCommand => new RelayCommand(NavigateNextStepCommand_Executed); | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public ICommand NavigateBackCommand => new RelayCommand(NavigateBackCommand_Executed); | ||
|
||
#endregion | ||
|
||
#region Extension Methods | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <returns></returns> | ||
private async Task PostPageLoadedCommand_Executed() | ||
{ | ||
try | ||
{ | ||
|
||
} | ||
catch (Exception e) | ||
{ | ||
LogWriter.CreateLogEntry(e); | ||
} | ||
} | ||
|
||
#endregion | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <returns></returns> | ||
private async void NavigateNextStepCommand_Executed() | ||
{ | ||
try | ||
{ | ||
var window = (Application.Current as App)?.Window as MainWindow ?? new MainWindow(); | ||
var navigation = window.Navigation; | ||
var step2Page = navigation.GetNavigationViewItems(typeof(Step2Page)).First(); | ||
navigation.SetCurrentNavigationViewItem(step2Page); | ||
step2Page.IsEnabled = true; | ||
} | ||
|
||
catch (Exception e) | ||
{ | ||
LogWriter.CreateLogEntry(e); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
private void NavigateBackCommand_Executed() | ||
{ | ||
var window = (Application.Current as App)?.Window as MainWindow ?? new MainWindow(); | ||
var navigation = window.Navigation; | ||
var homePage = navigation.GetNavigationViewItems(typeof(HomePage)).First(); | ||
navigation.SetCurrentNavigationViewItem(homePage); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.