private void DisableChecklist() { this.isChecklist = false; Text = GetTextFromChecklist(false); Checklist.Clear(); }
private void replaceChecklist(IList <ChecklistItem> list) { Checklist.Clear(); if (list == null || list.Count <= 0) { return; } foreach (var item in list) { item.NoteId = ID; Checklist.Add(item); } return; }
private void EnableChecklist() { this.isChecklist = true; if (!(string.IsNullOrEmpty(Text))) { string[] lines = Text.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries); Checklist.Clear(); foreach (string line in lines) { Checklist.Add(ChecklistItem.FromText(line)); } } Text = ""; }