Impl HotCoolplate Page, Start Impl. NIOStation Page, Impll ChuckMagazinPage

This commit is contained in:
2026-02-13 15:41:46 +01:00
parent f8174d752c
commit a0ef457995
11 changed files with 415 additions and 355 deletions

View File

@@ -53,8 +53,14 @@ public sealed partial class MainWindowVM : ObservableObject, IRecipient<Navigate
// Settings page viem model
SettingsPageVM? _settingsPageVM;
// Kuka Robot page view model
KukaRobotPageVM? _kukaRobotPageVM;
// Hot Coolplate page view model
HotCoolPlatePageVM? _hotCoolplatePageVM;
// Chuck Magazin page view model
ChuckMagazinPageVM? _chuckMagazinPageVM;
// Kuka Robot page view model
KukaRobotPageVM? _kukaRobotPageVM;
public MainWindowVM(IAdsManager adsManager, IConfiguration config, TcEventLogger eventLogger)
{
@@ -127,8 +133,27 @@ public sealed partial class MainWindowVM : ObservableObject, IRecipient<Navigate
NavigateMessage message = new(_config["KukaRobotVarName"]!, typeof(KukaRobotPage));
Receive(message);
}
[RelayCommand]
public void HotCoolplateClicked()
{
StatusBarVisible = Visibility.Visible;
_messageStack.Clear();
_currentMessage = new NavigateMessage("", typeof(Page));
NavigateMessage message = new(_config["HotCoolplateVarName"]!, typeof(HotCoolPlatePage));
Receive(message);
}
[RelayCommand]
[RelayCommand]
public void ChuckMagazinClicked()
{
StatusBarVisible = Visibility.Visible;
_messageStack.Clear();
_currentMessage = new NavigateMessage("", typeof(Page));
NavigateMessage message = new(_config["ChuckMagazinVarName"]!, typeof(ChuckMagazinPage));
Receive(message);
}
[RelayCommand]
public void NavigateBack()
{
if (_messageStack.Count == 0)
@@ -261,6 +286,25 @@ public sealed partial class MainWindowVM : ObservableObject, IRecipient<Navigate
Breadcrumb = " > Kuka Roboter";
break;
case nameof(HotCoolPlatePage):
if (_hotCoolplatePageVM == null)
_hotCoolplatePageVM = new(_adsManager, "GVL_Config.stHotCoolplateConfig");
HotCoolPlatePage hotCoolPlatePage = new() {DataContext = _hotCoolplatePageVM };
CurrentPage = hotCoolPlatePage;
Breadcrumb = " > Heiz- /Kühlplatte";
break;
case nameof(ChuckMagazinPage):
if (_chuckMagazinPageVM == null)
_chuckMagazinPageVM = new(_adsManager, "GVL_Config.stChuckMagazinConfig");
ChuckMagazinPage chuckMagazinPage = new() { DataContext= _chuckMagazinPageVM };
CurrentPage = chuckMagazinPage;
Breadcrumb = " > Tellermagazin";
break;
default:
CurrentPage = new Page();
break;