private AddNote ( bool centerNote, double xPos, double yPos, string text, System.Guid id ) : NoteModel | ||
centerNote | bool | |
xPos | double | |
yPos | double | |
text | string | |
id | System.Guid | |
return | NoteModel |
internal NoteModel AddNote(bool centerNote, double xPos, double yPos, string text, Guid id)
{
var noteModel = new NoteModel(xPos, yPos, string.IsNullOrEmpty(text) ? Resources.NewNoteString : text, id);
//if we have null parameters, the note is being added
//from the menu, center the view on the note
AddNote(noteModel, centerNote);
return noteModel;
}