public NoteDetailsPage(Note note) { InitializeComponent(); TitleLabel.Text = note.Title; TextLabel.Text = note.Text; }
public async void AddButton_Clicked(object sender, EventArgs e) { var note = new Note() { Title = TitleInput.Text, Text = TextInput.Text }; await NoteService.AddNoteAsync(note); await Navigation.PopAsync(); }
public static async Task AddNoteAsync(Note note) { // Without local SQLite store: //var noteTable = MobileService.GetTable<Note>(); //await noteTable.InsertAsync(note); await _NoteTable.InsertAsync(note); await SyncAsync(); }