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 HonkOperation : IOperation | |
{ | |
IControlModel _model = null; | |
public HonkOperation(IControlModel model) | |
{ | |
_model = model; | |
} | |
public bool ChainedRollback { get; private set; } = false; |
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 App : Application | |
{ | |
public App() | |
{ | |
new Bootstrapper().Init().Get<IStackRunner>().Run(TeslaDefinition.Stacks.Authentication); | |
} |
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 Injection: IInjection | |
{ | |
private static ContainerBuilder _builder = null; | |
private static IContainer Container { get; set; } = null; | |
private static IList<Type> _registered = new List<Type>(); | |
public void Init() | |
{ |
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 AuthenticationStack : BaseStack | |
{ | |
public AuthenticationStack(INavigationService navigationService) | |
: base(navigationService, new NavigationContainer(new NavigationPage()), Stacks.Authentication) | |
{ | |
} | |
protected override void Map() | |
{ | |
_navigationService.Map(nameof(Authentication.Pin), typeof(PinPage), typeof(PinViewModel)); |
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
namespace Mobile.Definition.ViewLocator | |
{ | |
public enum Authentication | |
{ | |
Pin = 0 | |
} | |
public enum Main | |
{ | |
Main = 0 |
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 BaseModel: Exrin.Framework.Model | |
{ | |
public BaseModel(IDisplayService displayService, IApplicationInsights applicationInsights, IErrorHandlingService errorHandlingService, IModelState modelState) | |
:base(displayService, applicationInsights, errorHandlingService, modelState) | |
{ | |
} | |
} |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="Mobile.Base.BaseView"> | |
</ContentPage> | |
public partial class BaseView : ContentPage, IView | |
{ | |
public BaseView() |
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 BaseViewModel : Exrin.Framework.ViewModel | |
{ | |
public BaseViewModel(IDisplayService displayService, INavigationService navigationService, | |
IErrorHandlingService errorHandlingService, IStackRunner stackRunner, IVisualState visualState) | |
: base(displayService, navigationService, errorHandlingService, stackRunner, visualState) | |
{ | |
} | |
} |
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
var animation = new Animation(callback: d => grid.StatusBar.WidthRequest = d, | |
start: 0, | |
end: grid.Width, | |
easing: Easing.Linear); | |
animation.Commit(grid, MoveAnimation, rate: Convert.ToUInt32(jumpCount), length: Convert.ToUInt32(Timeout), finished: (length, result) => | |
{ | |
if (IsRunning) | |
{ | |
grid.StatusBar.BackgroundColor = Color.Red; |
NewerOlder