Пример #1
0
        public static async Task <Note> CreateNoteAsync()
        {
            string name = CreateNewUniqueName();
            var    note = new Note
            {
                DateCreated  = DateTime.Now,
                DateModified = DateTime.Now,
                Name         = name,
                Text         = string.Empty
            };

            Notes.InsertInOrder(note);
            await StorageManager.CreateFileAsync(note.Name, note.Text);

            return(note);
        }