private void AddNoteItem(Note item) { NoteItem noteItem = new NoteItem(item); noteItem.NoteItemClick += NoteItem_NoteItemClick; noteItem.NoteItemDoubleClick += NoteItem_NoteItemDoubleClick; flowLayoutPanelNoteList.Controls.Add(noteItem); }
private void flowLayoutPanelNoteList_Click(object sender, EventArgs e) { if (focusingNoteItem != null) { focusingNoteItem.BackColor = Color.PaleGoldenrod; } focusingNoteItem = null; }
private void ChangeBackColorNoteItem(NoteItem item) { if (focusingNoteItem != null) { focusingNoteItem.BackColor = Color.PaleGoldenrod; } item.BackColor = Color.Gold; focusingNoteItem = item; }