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
List<UIViewController> controllers; | |
UIView currentZoomView; | |
int controllerIndex; |
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 (UIAlertViewDelegate del = new UIAlertViewOkCancelDelegate(OpenFile, Cancelled)) | |
using (UIAlertView view = new UIAlertView(title, message, del, "Cancel", new string[] { "OK" })) | |
{ | |
view.AlertViewStyle = UIAlertViewStyle.SecureTextInput; | |
view.Show (); | |
} |
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
UIAlertViewDelegate del = new UIAlertViewOkCancelDelegate(DecryptFile, Cancelled); | |
UIAlertView view = new UIAlertView(title, message, del, "Cancel", new string[] { "OK" }); | |
view.AlertViewStyle = UIAlertViewStyle.SecureTextInput; | |
view.Show (); |
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
NSNotificationCenter.DefaultCenter.AddObserver (UIScreen.DidConnectNotification, notification => { | |
UIScreen connectedScreen = (UIScreen)notification.Object; | |
CreateRemoteWindow(connectedScreen); | |
}); |
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
void CreateRemoteWindow (UIScreen connectedScreen) | |
{ | |
RectangleF frame = connectedScreen.Bounds; | |
this.remoteWindow = new UIWindow (frame) { | |
Screen = connectedScreen, | |
Hidden = false, | |
}; | |
this.remoteWindow.RootViewController = aControllerOfMyChoosing; | |
} |
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
if (UIScreen.Screens.Count() > 1) { | |
CreateRemoteWindow(UIScreen.Screens[1]); | |
} |
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
namespace NinjaLocator.Core | |
{ | |
public abstract class UIDefinitions<TNativeColor> | |
{ | |
protected abstract TNativeColor TranslateColor(byte red, byte green, byte blue); | |
private static UIDefinitions<TNativeColor> _instance; | |
public static TNativeColor BackgroundColor { get { return _instance.TranslateColor(Configuration.BG_RED, Configuration.BG_GREEN, Configuration.BG_BLUE); } } | |
public static TNativeColor ForegroundColor { get { return _instance.TranslateColor(Configuration.FG_RED, Configuration.FG_GREEN, Configuration.FG_BLUE); } } |
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.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace NinjaLocator.Core | |
{ | |
public abstract class ServiceClient<TAuthenticationProvider> | |
{ | |
public TAuthenticationProvider AuhenticationProvider { get; set; } | |
public string AuthenticationToken { get; set; } |
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.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace NinjaLocator.Core | |
{ | |
public interface IMobileServiceTable<T> | |
{ | |
Task InsertAsync(T entity); | |
Task<IEnumerable<T>> ReadAsync(); | |
} |
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 insert(item, user, request) { | |
item.LastSeen = new Date(); | |
item.UserId = user.userId; | |
item.GroupName = item.GroupName.toUpperCase(); | |
var ninjasTable = tables.getTable("ninja"); | |
ninjasTable.where({ UserId: user.userId }).read({ | |
success: function(results) { | |
if (results.length > 0) { | |
var existingNinja = results[0]; | |
existingNinja.NickName = item.NickName; |
OlderNewer