Пример #1
0
        private void CreateNewNote()
        {
            Note note = new Note(MainActivity.countNotes + 1, textView.Text, titleView.Text);

            SerializationNote.SaveAsBinaryFormat(note, String.Format("Note" + note.Id));
            currentNode = note;
        }
Пример #2
0
        private void SaveNote()
        {
            File.Delete(Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "Note" + currentNode.Id));
            Note note = new Note(currentNode.Id, textView.Text, titleView.Text);

            SerializationNote.SaveAsBinaryFormat(note, String.Format("Note" + note.Id));
            currentNode = note;
            Toast.MakeText(this, "Saved", ToastLength.Short).Show();
        }