private void actorName_LostFocus(object sender, RoutedEventArgs e) { try { if (!AdditionalData.GetActorNames().Contains(actorName.Text) && actorName.Text.Length > 0 && actorName.Text != "None") { AdditionalData.AddDialogueActor(actorName.Text); } } catch (Exception) { } OnNodeDataChanged(sender, e); }