private void LoadNotes()
 {
     notes = new List <Note>(dataset.List());
     if (notes.Count > 0)
     {
         currentIndex = 0;
         UpdateView(notes[currentIndex]);
     }
     else
     {
         BlankNote();
     }
 }
        public void TestNoteDataSet()
        {
            var ds   = new NoteDataSet();
            var note = new Note();

            note.Text = "Привет";

            ds.Insert(note);
            Console.WriteLine(note);
            foreach (var n in ds.List())
            {
                Console.WriteLine(n);
            }
            // ds.Delete(ds.List()[0].Id);
        }