Example #1
0
        private void DisableChecklist()
        {
            this.isChecklist = false;

            Text = GetTextFromChecklist(false);

            Checklist.Clear();
        }
Example #2
0
        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;
        }
Example #3
0
        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 = "";
        }