public void addNote() { String _text = mainWindow.noteBox.Text; Note n = new Note("Marcel Melching", "*****@*****.**", DateTime.Now.Hour + ":" + DateTime.Now.Minute, DateTime.Now.Day + "-" + DateTime.Now.Month + "-" + DateTime.Now.Year, _text); xmlHandler.addNoteToXml(_text); }
public void createNotesFromXml() { XmlNodeList nodeList = xmlDoc.SelectNodes("//note"); foreach (XmlNode n in nodeList) { newNote = new Note(); newNote.Name = n.Attributes["name"].Value; newNote.Mail = n.Attributes["mail"].Value; newNote.Time = n.Attributes["time"].Value; newNote.Date = n.Attributes["date"].Value; newNote.Note_ = n.InnerText; controller.addInitialNotes(newNote); } }
public void addInitialNotes(Note _note) { Note newNote = _note; noteCollection.Add(newNote); }