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 !AMAZON | |
var adView = new AdView(this); | |
(...) | |
#endif |
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
<Reference Include="Xamarin.GooglePlayServices.Ads, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" Condition="'$(Configuration)' != 'ReleaseAmazon' And '$(Configuration)' != 'DebugAmazon'"> | |
<HintPath>..\..\packages\Xamarin.GooglePlayServices.Ads.42.1021.1\lib\MonoAndroid70\Xamarin.GooglePlayServices.Ads.dll</HintPath> | |
</Reference> | |
<Import Project="..\..\packages\Xamarin.GooglePlayServices.Ads.42.1021.1\build\MonoAndroid70\Xamarin.GooglePlayServices.Ads.targets" Condition="Exists('..\..\packages\Xamarin.GooglePlayServices.Ads.42.1021.1\build\MonoAndroid70\Xamarin.GooglePlayServices.Ads.targets') And '$(Configuration)' != 'ReleaseAmazon' And '$(Configuration)' != 'DebugAmazon'" /> |
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 App() | |
{ | |
// ... | |
var page = FreshPageModelResolver.ResolvePageModel<DashboardViewModel>(); | |
var basicNavContainer = new FreshNavigationContainer(page); | |
MainPage = basicNavContainer; | |
} |
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 Command AddMonthCmd => new Command(async () => | |
{ | |
await CoreMethods.PushPageModel<MonthEditViewModel>(); | |
// lub await CoreMethods.PushPageModel<MonthEditViewModel>(SelectedMonth); | |
}); |
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 override void Init(object initData) | |
{ | |
base.Init(initData); | |
if (initData is MonthItem monthItem) | |
{ | |
// Przekazaliśmy obiekt w parametrze PushPageModel w DashboardViewModel | |
} | |
else | |
{ | |
// Tutaj wywołaliśmy PushPageModel w DashboardViewModel bez parametru |
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 Command SaveCmd => new Command(async () => | |
{ | |
await CoreMethods.PopPageModel(); | |
// lub await CoreMethods.PopPageModel(data); | |
}); |
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 override void ReverseInit(object returnedData) | |
{ | |
base.ReverseInit(returnedData); | |
// Tutaj możemy odczytać dane | |
} |
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 Command SaveCmd => new Command(async () => | |
{ | |
if (/* Ten miesiąc już istnieje? */) | |
{ | |
await CoreMethods.DisplayAlert("", AppResources.MothAlreadyExistsMessage, AppResources.Ok); // Powiedzmy użytkownikowi, że ten miesiąc dodał już wczesniej | |
} | |
else | |
{ | |
// Zapisz miesiąc | |
} |
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 App() | |
{ | |
InitializeComponent(); | |
var fs = DependencyService.Get<IFileService>(); | |
FreshIOC.Container.Register(fs); | |
FreshIOC.Container.Register<IDbService, DbService>(); | |
// ... | |
} |
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 DbService(IFileService fileService) | |
{ | |
_fileService = fileService; | |
_connection = new SQLiteConnection(_fileService.DbPath); | |
_connection.CreateTable<MonthItem>(); | |
_connection.CreateTable<BudgetItem>(); | |
} |