private void InsertMessage(Message message) { message.Id = Guid.NewGuid().ToString(); items.Add(message); }
private void UpdateCheckedMessage(Message item) { // TODO :mark "async" // await todoTable.UpdateAsync(message); items.Remove(item); }
private void ButtonSave_Click(object sender, RoutedEventArgs e) { var message = new Message {Text = InputText.Text}; InsertMessage(message); }