예제 #1
0
파일: NoteForm.cs 프로젝트: umutocak/tinote
        private void richTextBox1_TextChanged(object sender, System.EventArgs e)
        {
            ContentChangedEventArgs args = new ContentChangedEventArgs()
            {
                Rtf  = richTextBox1.Rtf,
                Text = richTextBox1.Text
            };

            OnContentChanged(args);
        }
예제 #2
0
 private void Note_ContentChanged(object sender, ContentChangedEventArgs e)
 {
     for (int i = 0; i < notesListBox.Items.Count; i++)
     {
         if (notesListBox.Items[i] as Note == sender)
         {
             notesListBox.Items[i] = sender;
         }
     }
     noteManager.SaveNoteToDisk(sender as Note);
 }
예제 #3
0
        private void NoteForm_ContentChanged(object sender, ContentChangedEventArgs e)
        {
            this.contentText = e.Text;
            this.contentRtf  = e.Rtf;
            ContentChangedEventArgs args = new ContentChangedEventArgs()
            {
                Rtf  = e.Rtf,
                Text = e.Text
            };

            OnContentChanged(args);
        }
예제 #4
0
 protected virtual void OnContentChanged(ContentChangedEventArgs e)
 {
     ContentChanged?.Invoke(this, e);
 }