This file contains 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; | |
using System.Threading; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
namespace XactwareExample | |
{ | |
public static class Execute | |
{ | |
public static void OnBackgroundThread(NSAction backgroundAction, NSAction uiAction) |
This file contains 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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ItemGroup> | |
<WildCard Include="..\..\..\..\Assets\Fonts\*.spritefont"> | |
<Link>%(FileName).spritefont</Link> | |
<Importer>FontDescriptionImporter</Importer> | |
<Processor>FontDescriptionProcessor</Processor> | |
</WildCard> | |
</ItemGroup> | |
<ItemGroup> | |
<WildCard Include="..\..\..\..\Assets\images\spritesheet\iPad\*.png"> |
This file contains 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
<Target Name="BeforeBuild" Condition=" '$(JENKINS)' == '1' "> | |
<XmlPoke XmlInputPath="Properties\AndroidManifest.xml" Namespaces="<Namespace Prefix='android' Uri='http://schemas.android.com/apk/res/android' />" Query="manifest/@android:versionCode" Value="$(SVN_REVISION)" /> | |
<XmlPoke XmlInputPath="Properties\AndroidManifest.xml" Namespaces="<Namespace Prefix='android' Uri='http://schemas.android.com/apk/res/android' />" Query="manifest/@android:versionName" Value="2.0.$(SVN_REVISION)" /> | |
</Target> |
This file contains 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
/p:Configuration=Release;AndroidKeyStore=True;AndroidSigningKeyStore=OurKey.keystore;AndroidSigningStorePass=ourpassword;AndroidSigningKeyAlias=ouralias;AndroidSigningKeyPass=ourpassword /t:SignAndroidPackage |
This file contains 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
// An example class, in the real world would talk to a web | |
// server or database. | |
public class ProductRepository | |
{ | |
//OTHER CODE HERE | |
public async Task<Product[]> SearchProducts( | |
string searchTerm) | |
{ | |
// Wait 2 seconds to simulate web request |
This file contains 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
var message = await service.SendMessage(new Message | |
{ | |
UserId = settings.User.Id, | |
ConversationId = Conversation.Id, | |
Text = Text, | |
}); |
This file contains 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; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
using MonoTouch.StoreKit; | |
namespace InAppPurchases | |
{ |
This file contains 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
//// General Declarations | |
var colorSpace = CGColorSpace.CreateDeviceRGB(); | |
var context = UIGraphics.GetCurrentContext(); | |
//// Color Declarations | |
UIColor color = UIColor.FromRGBA(1.000f, 1.000f, 1.000f, 1.000f); | |
UIColor color2 = UIColor.FromRGBA(0.110f, 0.110f, 0.110f, 1.000f); | |
UIColor color3 = UIColor.FromRGBA(0.118f, 0.118f, 0.118f, 1.000f); | |
//// Gradient Declarations |
This file contains 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
//// General Declarations | |
var colorSpace = CGColorSpace.CreateDeviceRGB(); | |
var context = UIGraphics.GetCurrentContext(); | |
//// Color Declarations | |
var color4 = UIColor.FromRGBA(0.761f, 0.678f, 0.310f, 0.000f); | |
var color5 = UIColor.FromRGBA(0.761f, 0.678f, 0.310f, 0.349f); | |
//// Gradient Declarations | |
var defaultGradientForegroundToTransparentForegroundToTransparentColors = new CGColor [] {color4.CGColor, color5.CGColor}; |
This file contains 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
//// General Declarations | |
var colorSpace = CGColorSpace.CreateDeviceRGB(); | |
var context = UIGraphics.GetCurrentContext(); | |
//// Color Declarations | |
var color4 = UIColor.FromRGBA(0.761f, 0.678f, 0.310f, 0.000f); | |
var color5 = UIColor.FromRGBA(0.761f, 0.678f, 0.310f, 0.349f); | |
//// Gradient Declarations | |
var defaultGradientForegroundToTransparentForegroundToTransparentColors = new CGColor [] {color4.CGColor, color5.CGColor}; |
OlderNewer