Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 private void editor_EditorTextChanged(object sender, EditorTextChangedEventArgs e)
 {
     //bool dirty = m_editor.Dirty;
     //if (dirty != Dirty)
     //{
     //    Dirty = dirty;
     //}
 }
Ejemplo n.º 3
0
        private void editor_EditorTextChanged(object sender, EditorTextChangedEventArgs e)
        {
            bool dirty = m_editor.Dirty;

            if (dirty != m_dirty)
            {
                Dirty = dirty;
            }
        }