Beispiel #1
0
        private void NoteBodyTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            NoteManipulation.UpdateTheCharactersLeftOnNote(sender, NotesGridView);
            var currentNote = notes.FirstOrDefault(n => n.NoteTag == Convert.ToInt16((sender as TextBox).Tag));

            currentNote.Body             = (sender as TextBox).Text;
            (sender as TextBox).FontSize = NoteBodyFontSizeGenerator.GetNoteFontSize((sender as TextBox).Text);
        }
Beispiel #2
0
 private void NewNoteTextBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     CountTextBlock.Text     = (300 - NewNoteTextBox.Text.Length).ToString();
     NewNoteTextBox.FontSize = NoteBodyFontSizeGenerator.GetNoteFontSize(NewNoteTextBox.Text);
 }