public static long UpdateConnectionURL(tblConnection item) { using (var database = Database.Connection()) { database.Update(item); return(item.id); } }
private void OkDialog_Clicked(object sender, DialogClickEventArgs args) { tblConnection connection = new tblConnection(); var dialog = (AlertDialog)sender; var txtnewurl = (EditText)dialog.FindViewById(Resource.Id.txturl); connection.id = 1; connection.url = txtnewurl.Text; ConAddress.UpdateConnectionURL(connection); var url = ConAddress.GetConnectionURL(); GlobalVariables.GlobalUrl = url.url; }