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 MonoTouch.UIKit; | |
using MonoTouch.Foundation; | |
namespace Rendr | |
{ | |
[Register ("DismissSegue")] | |
public class DismissSegue:UIStoryboardSegue | |
{ | |
public DismissSegue (IntPtr param) : base (param) |
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 Android.Views; | |
using Android.Widget; | |
namespace Rendr.Community | |
{ | |
public static class UIExtensions | |
{ | |
public static void SetChildrenEnabled (this ViewGroup group, bool enabled) | |
{ |
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 MonoTouch.UIKit; | |
using System.Drawing; | |
namespace Rendr.iOS.Util | |
{ | |
public static class Environment | |
{ | |
public static bool IsIOS7{ | |
get{ |
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
public static class ResourceManager | |
{ | |
static XDocument stringsDoc; | |
static XDocument integersDoc; | |
static ResourceManager () | |
{ | |
stringsDoc = XDocument.Load ("Strings.xml"); | |
integersDoc = XDocument.Load ("Integers.xml"); |
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
function getXHR(url, callback) { | |
var req = new XMLHttpRequest(); | |
req.onreadystatechange = function() { | |
if (this.readyState == 4) { | |
if (this.status == 200 || this.status == 0) { | |
callback(this.responseText); | |
} else { | |
alert('Request failed') | |
} |