/// <summary> /// Shows the dialog to the user and returns the changes requested. /// </summary> /// <param name="instance">The instance on which open/close ports.</param> public static PortChanges PromptUser(Instance instance) { var window = new PortManagerWindow(instance); window.ShowModal(); return(window.ViewModel.Result); }
public PortManagerViewModel(PortManagerWindow owner, Instance instance) { _owner = owner; _instance = instance; Ports = CreatePortModels(); OkCommand = new ProtectedCommand(OnOkCommand); }
/// <summary> /// Shows the dialog to the user and returns the changes requested. /// </summary> /// <param name="instance">The instance on which open/close ports.</param> /// <returns></returns> public static PortChanges PromptUser(Instance instance) { var window = new PortManagerWindow(instance); window.ShowModal(); return window.ViewModel.Result; }