lw_common.ui.note_ctrl.set_author C# (CSharp) 메소드

set_author() 공개 메소드

public set_author ( string author_name, string author_initials, Color notes_color ) : void
author_name string
author_initials string
notes_color Color
리턴 void
        public void set_author(string author_name, string author_initials, Color notes_color) {
            author_name_ = author_name;
            author_initials_ = author_initials;
            author_color_ = notes_color;
            // set_aliases anything that was added by me before the changes were made
            foreach (note_item n in notes_sorted_by_line_index_)
                if (n.the_note != null && n.the_note.made_by_current_user) {
                    n.the_note.author_name = author_name;
                    n.the_note.author_initials = author_initials;
                    n.the_note.author_color = notes_color;
                }

            update_author_colors();
            notesCtrl.Refresh();
        }