From 990e7a8a23770e9a19e2403356d0e8b98dcd07b9 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 29 Oct 2016 02:49:45 +0200 Subject: [PATCH] meilleur choix de code --- BookAStar/BookAStar/App.xaml.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BookAStar/BookAStar/App.xaml.cs b/BookAStar/BookAStar/App.xaml.cs index beabc53f..e7c2fd10 100644 --- a/BookAStar/BookAStar/App.xaml.cs +++ b/BookAStar/BookAStar/App.xaml.cs @@ -29,8 +29,7 @@ namespace BookAStar public static string AppName { get; set; } - // Exists in order to dispose of a static instance strongly typed, - // It Makes smaller code. + [Obsolete("Instead using this, use new static properties.")] public static App CurrentApp { get { return Current as App; } } public static bool MasterPresented @@ -253,8 +252,8 @@ namespace BookAStar } } } - private HubConnection chatHubConnection = null; - public HubConnection ChatHubConnection + private static HubConnection chatHubConnection = null; + public static HubConnection ChatHubConnection { get {