示例#1
0
 /// <summary>Initialises a new instance of the <see cref="App" /> class.</summary>
 public App()
 {
     InitializeComponent();
     DependencyService.Register <SocketsService>();
     socketsService = DependencyService.Resolve <SocketsService>();
     DependencyService.Register <DialogService>();
     DependencyService.Register <MarketsHelperService>();
     Current.MainPage = new AppShell();
 }
示例#2
0
 /// <summary>Initialises a new instance of the <see cref="App" /> class.</summary>
 public App()
 {
     this.InitializeComponent();
     DependencyService.Register <SocketsService>();
     this.socketsService = DependencyService.Resolve <SocketsService>();
     DependencyService.Register <DialogService>();
     DependencyService.Register <MarketsHelperService>();
     Xamarin.Forms.Device.BeginInvokeOnMainThread(() =>
     {
         Current.MainPage = new AppShell();
     });
 }