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 partial class App : Application | |
| { | |
| public static IContainer Container; | |
| public App() | |
| { | |
| InitializeComponent(); | |
| MainPage = new MainPage(); | |
| } |
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" | |
| xmlns:d="http://xamarin.com/schemas/2014/forms/design" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| mc:Ignorable="d" | |
| x:Class="DependencyInjection.MainPage"> | |
| <StackLayout> | |
| <Label Text="{Binding VersionName}" |
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 MainViewModel : INotifyPropertyChanged | |
| { | |
| private string versionName; | |
| public string VersionName | |
| { | |
| get | |
| { | |
| return versionName; | |
| } | |
| private set |
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 DependencyInjection.Dependencies | |
| { | |
| public interface IAppInformation | |
| { | |
| string Version { get; } | |
| } | |
| } |
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
| using System; | |
| namespace DependencyInjection.Services.Logger | |
| { | |
| public class LoggerService : ILoggerService | |
| { | |
| public void Error( Exception e ) | |
| { | |
| //Do something. Analytics, Tracking, Write LogFile etc. | |
| } |
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
| using System; | |
| namespace DependencyInjection.Services.Logger | |
| { | |
| public interface ILoggerService | |
| { | |
| void Error(Exception e); | |
| } | |
| } |
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" | |
| xmlns:local="clr-namespace:ResourceManager" | |
| x:Class="ResourceManager.MainPage"> | |
| <StackLayout> | |
| <Label Text="{x:Static local:AppResources.HelloWorld}" | |
| HorizontalOptions="Center" | |
| VerticalOptions="CenterAndExpand" /> |
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
| package com.alansolisflores.listviewgridview; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.widget.AdapterView; | |
| import android.widget.ListView; | |
| import android.widget.Toast; | |
| import java.util.ArrayList; |
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
| package com.alansolisflores.mvp.models; | |
| public class Person { | |
| private String firstName; | |
| private String lastName; | |
| public Person(String firstName, String lastName) { | |
| this.firstName = firstName; |
NewerOlder