本文整理汇总了C#中FlickrNet.Flickr.InterestingnessGetList方法的典型用法代码示例。如果您正苦于以下问题:C# Flickr.InterestingnessGetList方法的具体用法?C# Flickr.InterestingnessGetList怎么用?C# Flickr.InterestingnessGetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FlickrNet.Flickr
的用法示例。
在下文中一共展示了Flickr.InterestingnessGetList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
void Initialize()
{
flowView = new OpenFlowView (UIScreen.MainScreen.Bounds, this);
View = flowView;
using (var alertView = new UIAlertView ("OpenFlowSharp Demo Data Source",
"Would you like to download images from Flickr or use 30 sample images included with this project?",
null, "Flickr",
"Samples (all at once)",
"Samples (using threads)")){
alertView.Dismissed += delegate(object sender, UIButtonEventArgs e) {
switch (e.ButtonIndex){
// Flickr
case 0:
flickr = new Flickr (apiKey, sharedSecret);
tasks.Enqueue (delegate {
try {
Network = true;
photos = flickr.InterestingnessGetList ();
Network = false;
InvokeOnMainThread (delegate {
flowView.NumberOfImages = photos.Count;
});
} catch {
InvokeOnMainThread (delegate {
using (var alert = new UIAlertView ("Error", "While accessing Flickr", null, "Ok")){
alert.Show ();
}
});
}
});
break;
// Load images on demand on a worker thread
case 2:
flowView.NumberOfImages = 30;
break;
// Sync case, load all images at startup
case 1:
LoadAllImages ();
return;
}
// Start our thread queue system
new Thread (Worker).Start ();
signal.Set ();
};
alertView.Show ();
}
}