/// <inheritdoc/> public override void StartInteraction(DiagramInteractionEventArguments interaction) { if (interaction.ViewModelUnderMouse is Node node) { var nodeCopy = _nodeProvider.CreateNodeFromName(node.GetType().FullName); node.SetAdorner(null); _helpDialog = new HelpDialog(nodeCopy); _dialogHost.OpenDialog(_helpDialog); } }
private void TryAddingNode(Node node) { try { AddNode(node); } catch (Exception e) { var exceptionMessage = $"Error in '{node.GetType().FullName}.InitializeWithNode(NodeModel node)'-- - Exception message: { e.Message }"; var messageBoxBuilder = new MessageBox.Builder("Error Adding Node", exceptionMessage).WithChoice("Ok", () => { }); _dialogHost.OpenDialog(messageBoxBuilder.Build()); } }
/// <inheritdoc/> protected override void ExecuteInternal(object parameter) { _dialogHost.OpenDialog(_optionsDialog); }
/// <inheritdoc/> protected override void ExecuteInternal(object parameter) { _dialogHost.OpenDialog(_libraryManagerDialog); }