diff --git a/PLCsimAdvanced_Manager/Pages/Instance.razor b/PLCsimAdvanced_Manager/Pages/Instance.razor
index 4add883..05d2459 100644
--- a/PLCsimAdvanced_Manager/Pages/Instance.razor
+++ b/PLCsimAdvanced_Manager/Pages/Instance.razor
@@ -4,6 +4,7 @@
@using Siemens.Simatic.Simulation.Runtime
@using Color = MudBlazor.Color
@inject ManagerFacade managerFacade
+@inject IDialogService DialogService
@@ -15,7 +16,7 @@
-
+
@InstanceName
@@ -32,53 +33,10 @@
-
-
- Size Snapshots: @rootDirectorySize
-
- Create Snapshot
-
-
- Name
- Timestamp
- Actions
-
- @foreach (var snapshot in GetSnapshots())
- {
- var dir = snapshot; // Create a local copy to avoid issues with the foreach loop
- var isRunning = SelectedInstance.OperatingState != EOperatingState.Off;
-
-
-
-
-
-
-
- @Path.GetFileName(snapshot)
-
-
-
-
-
- @File.GetLastWriteTime(snapshot).ToShortDateString()
@File.GetLastWriteTime(snapshot).ToShortTimeString()
-
-
-
-
-
-
-
-
-
-
- }
-
-
-
-
+
@* *@
-
+
@@ -122,6 +80,23 @@
@SelectedInstance.CommunicationInterface.ToString()
+
+
+ Controller IP
+
+
+ @foreach (var ip in SelectedInstance.ControllerIP)
+ {
+
@ip
+ }
+
+ @if (SelectedInstance.ControllerIP.Length != 0)
+ {
+
+ }
+
+
+
Strict Motion Timing
@@ -169,80 +144,8 @@
@* *@
-
-
-
-
- @for (int i = 0; i < SelectedInstance.ControllerIPSuite4.Length; i++)
- {
- var index = i;
- var t = $"X{i + 1}";
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @if (SimulationRuntimeManager.NetworkMode == ECommunicationMode.Non_Promiscuous)
- {
- switch (index + 1)
- {
- case 1:
-
- @foreach (var v in SimulationRuntimeManager.NetInterfaces)
- {
- @v.interfaceName
- }
- NO MAPPING
-
-
- break;
- case 2:
-
- @foreach (var v in SimulationRuntimeManager.NetInterfaces)
- {
- @v.interfaceName
- }
- NO MAPPING
-
- break;
-
- case 3:
-
- @foreach (var v in SimulationRuntimeManager.NetInterfaces)
- {
- @v.interfaceName
- }
- NO MAPPING
-
- break;
- }
- }
-
- }
-
-
- Apply changes
-
-
-
-
+
Timestamp
@@ -275,6 +178,51 @@
+
+
+ Size Snapshots: @rootDirectorySize
+
+ Create Snapshot
+
+
+ Name
+ Timestamp
+ Actions
+
+ @foreach (var snapshot in GetSnapshots())
+ {
+ var dir = snapshot; // Create a local copy to avoid issues with the foreach loop
+ var isRunning = SelectedInstance.OperatingState != EOperatingState.Off;
+
+
+
+
+
+
+
+ @Path.GetFileName(snapshot)
+
+
+
+
+
+ @File.GetLastWriteTime(snapshot).ToShortDateString()
@File.GetLastWriteTime(snapshot).ToShortTimeString()
+
+
+
+
+
+
+
+
+
+
+ }
+
+
+
+
+
@@ -356,6 +304,8 @@
InvokeAsync(StateHasChanged);
}
+
+
private bool renameDialog;
diff --git a/PLCsimAdvanced_Manager/Pages/Instance.razor.cs b/PLCsimAdvanced_Manager/Pages/Instance.razor.cs
new file mode 100644
index 0000000..1914079
--- /dev/null
+++ b/PLCsimAdvanced_Manager/Pages/Instance.razor.cs
@@ -0,0 +1,17 @@
+using MudBlazor;
+using PLCsimAdvanced_Manager.Components;
+using Siemens.Simatic.Simulation.Runtime;
+
+namespace PLCsimAdvanced_Manager.Pages;
+
+public partial class Instance
+{
+ private void OpenDialogSetIPSettings(IInstance selectedInstance)
+ {
+ DialogOptions closeOnEscapeKey = new DialogOptions()
+ { CloseOnEscapeKey = true, MaxWidth = MaxWidth.Medium, CloseButton = true };
+ var parameters = new DialogParameters();
+ parameters.Add("selectedInstance", selectedInstance);
+ DialogService.Show($"IP Settings: {selectedInstance.Name}", parameters, closeOnEscapeKey);
+ }
+}
\ No newline at end of file