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
using System.Drawing; | |
using System.Threading.Tasks; | |
using MonoTouch.CoreAnimation; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
namespace Animations | |
{ | |
/// <summary> | |
/// Original Objective-C by shu223 |
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
public async Task DoSomethingAsync() | |
{ | |
var tsc = new TaskCompletionSource<object>(); | |
EventHandler<AsyncResult> handler = (o, e) => | |
{ | |
if (e.Error == null) | |
{ | |
tsc.TrySetResult(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
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
#OS junk files | |
[Tt]humbs.db | |
*.DS_Store | |
# User-specific files | |
*.suo | |
*.user |
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
<key>CFBundleDocumentTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleTypeName</key> | |
<string>EXT</string> | |
<key>NSExportableTypes</key> | |
<array> | |
<string>org.temp.ext</string> | |
</array> | |
<key>CFBundleTypeRole</key> |
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
public class TreeViewDataSource : NSOutlineViewDataSource | |
{ | |
private readonly List<TreeItem> source = new List<TreeItem>(); | |
public TreeViewDataSource() | |
{} | |
public void Add(TreeItem item) | |
{ | |
source.Add(item); |
NewerOlder