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
// not clean but it works!! | |
public AuthorizationService( | |
IPhotoClient photoClient, | |
IClientConfiguration configuration, | |
IMvxNavigationService navigationService, | |
UserInfo userInfo, | |
) | |
{ | |
_photoClient = photoClient; | |
_configuration = configuration; |
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
//clean but don't work | |
public AuthorizationService( | |
IPhotoClient photoClient, | |
IClientConfiguration configuration, | |
IMvxNavigationService navigationService, | |
UserInfo userInfo, | |
IFingerprint fingerprint, // bad boy | |
) |
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" ?> | |
<Application xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:rainbows="clr-namespace:Xamarin.Forms.DebugRainbows;assembly=Xamarin.Forms.DebugRainbows" | |
x:Class="StyledApp.App"> | |
<Application.Resources> | |
<ResourceDictionary> | |
<Style TargetType="ContentPage" ApplyToDerivedTypes="True"> | |
<Setter Property="rainbows:DebugRainbow.ShowColors" Value="True" /> | |
<Setter Property="rainbows:DebugRainbow.ShowGrid" Value="True" /> |
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
void Submit() | |
{ | |
// USGLY SAMPLE LOGIC = No cultureInfo | |
LabelText = Title + " " + EntryText + " € "; | |
if (UglyCurtureTextForSample == "UK") | |
{ | |
LabelText = Title + " £" + EntryText ; | |
} |
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 static MainPageViewModel MainPageViewModeDE | |
{ | |
get { return new MainPageViewModel(null) { Title = "Deutsch", ButtonText = "Rechnungen".ToUpper() + "€" }; } | |
} | |
public static MainPageViewModel MainPageViewModePL | |
{ | |
get { return new MainPageViewModel(null) { UglyCurtureTextForSample= "PL", Title = "Polski", ButtonText = "Faktury " + demoSum + "PLN" }; } | |
} |
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
/// UGLY DUMMY DATA = no culture | |
const double demoSum = 99.99; | |
public static MainPageViewModel MainPageViewModeDE | |
{ | |
get { return new MainPageViewModel(null) { Title = "Deutsch", ButtonText = "Rechnungen".ToUpper() + "€" }; } | |
} | |
public static MainPageViewModel MainPageViewModePL | |
{ |
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 static class DesignDataLoacator | |
{ | |
public static MainPageViewModel MainPageViewModeDE | |
{ | |
get { return new MainPageViewModel(null) { Title = "Deutsch", ButtonText = "Rechnungen" }; } | |
} | |
public static MainPageViewModel MainPageViewModePL | |
{ | |
get { return new MainPageViewModel(null) { Title = "Polski", ButtonText = "Faktury" }; } |