/* * Написать защиту от Enter '\n' */ public void AddMind(string mind, int type) { if (type == Const.IDEA) { ideas = new Idea(); ideas.AddIdea(ideas.ParseIdeaToWrite(mind)); } if (type == Const.TASK) { tasks = new Task(); tasks.AddTask(tasks.ParseTaskToWrite(mind)); } }
public void InitIdeas() { ideas = new Idea(); }