private void menuDeleteNode_Click(object sender, RoutedEventArgs e) { if (dialogueEntryID != 0) { parentWindow.DeleteNode(this.dialogueEntryID); } }