2
Great masters, I am here again in search of knowledge. I have a small application on Windows Phone 8.1, with a Sqlite database, as shown below:
I would like when selecting the item in the Listbox, and clicking on the Delete button, to launch a message asking if the user wants to delete this data. The code of the Delete button is as below:
private async void btnExcluir_Click(object sender, RoutedEventArgs e)
{
var excluir = ltbExibir.SelectedItem as Moto;
excluir.mot_nome = txtNomeMoto.Text;
excluir.mot_placa = txtPlacaMoto.Text;
await conexao.DeleteAsync(excluir);
}
And taking the opportunity, I would like to know how to insert title in the columns of Listbox. Waiting for your valuable information.
There is no Messagebox.Show for Winrt applications. Don’t go around writing any nonsense. As a matter of fact, it even exists, if the AP had specified that it was using Windows Phone Silverlight 8.1.
– Zignd
I did not write any "nonsense", really I was wrong showing the solution only to Silverlight without knowing if its app is in this format.
– Rafael Lincoln
Okay okay, I JUST THINK, IF YOU REALLY knew what I was writing, would not have committed this "mistake".
– Zignd
Let’s respect the answers, even if it was wrong, the intention was to help.
– rubStackOverflow