private void OnCheckCurrent(object sender, EventArgs e) { if (ResourcesHandler.Project == null) return; if (dockPanel.ActiveDocument is DocumentDialogue) { EditorCore.LogInfo("Checking Dialogue - Begin"); var dialogue = dockPanel.ActiveDocument as DocumentDialogue; ResourcesHandler.Check(dialogue.Dialogue); EditorCore.LogInfo("Checking Dialogue - End"); } }