This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// An AsyncTask that will asynchronously download an image and assign it to an ImageView. | |
/// </summary> | |
public class BitmapDownloaderTask : AsyncTask<String, Java.Lang.Void, Bitmap> | |
{ | |
private readonly ImageView _imageView; | |
public BitmapDownloaderTask(ImageView imageView) | |
{ | |
if (imageView == null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const string sql = "SELECT [layout_key], [layout_name] FROM [layout]"; | |
var layouts = new MsSqlDataSource(_connectionString) | |
.Execute(sql) | |
.Select(row => | |
new Layout( | |
row.GetValueOrDefault<int>("layout_key"), | |
row.GetValueOrDefault<string>("layout_name") | |
) | |
); |
NewerOlder