-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jasper De Keukelaere (imec)
authored and
Jasper De Keukelaere (imec)
committed
Jul 15, 2024
1 parent
ae2f69d
commit 9077162
Showing
2 changed files
with
86 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<SetIPSettingsDialog>($"IP Settings: {selectedInstance.Name}", parameters, closeOnEscapeKey); | ||
} | ||
} |