Impl HotCoolplate Page, Start Impl. NIOStation Page, Impll ChuckMagazinPage
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user