private void EditorEditorTextChanged(object sender, EditorTextChangedEventArgs e) { if (m_bLoading) { return; } var dirty = m_editor.Dirty; if (dirty != m_bDirty) { Dirty = dirty; } // Check line count for a change if (m_iLineCount != m_editor.DocumentLineCount) { DocumentLineCountChanged.Raise( this, new SledDocumentLineCountChangedArgs( m_iLineCount, m_editor.DocumentLineCount)); } // Update line count m_iLineCount = m_editor.DocumentLineCount; }
private void editor_EditorTextChanged(object sender, EditorTextChangedEventArgs e) { //bool dirty = m_editor.Dirty; //if (dirty != Dirty) //{ // Dirty = dirty; //} }
private void editor_EditorTextChanged(object sender, EditorTextChangedEventArgs e) { bool dirty = m_editor.Dirty; if (dirty != m_dirty) { Dirty = dirty; } }