Fixes compilation warnings

main
Paul Schneider 9 years ago
parent afaeb0250d
commit 9c6e379630
1 changed files with 11 additions and 12 deletions

@ -39,12 +39,13 @@ namespace BookAStar
[Obsolete("Instead using this, use new static properties.")] [Obsolete("Instead using this, use new static properties.")]
public static App CurrentApp { get { return Current as App; } } public static App CurrentApp { get { return Current as App; } }
private static ExtendedMasterDetailPage masterDetail;
public static bool MasterPresented public static bool MasterPresented
{ {
get get
{ return CurrentApp.masterDetail.IsPresented; } { return App.masterDetail.IsPresented; }
internal set internal set
{ CurrentApp.masterDetail.IsPresented = value; } { masterDetail.IsPresented = value; }
} }
public void Init() public void Init()
@ -95,7 +96,7 @@ namespace BookAStar
// TODO special startup pages as // TODO special startup pages as
// notification details or wizard setup page // notification details or wizard setup page
} }
private INavigation Navigation private static INavigation Navigation
{ {
get get
{ {
@ -169,8 +170,6 @@ namespace BookAStar
MainSettings.AppSettings.GetValueOrDefault<string>(s, MainSettings.SettingsDefault), null); MainSettings.AppSettings.GetValueOrDefault<string>(s, MainSettings.SettingsDefault), null);
} }
ExtendedMasterDetailPage masterDetail;
public App(IPlatform instance) public App(IPlatform instance)
{ {
// This declaration became obsolete by introduction // This declaration became obsolete by introduction
@ -279,7 +278,7 @@ namespace BookAStar
} }
public static Task<string> DisplayActionSheet(string title, string cancel, string destruction, string [] buttons) public static Task<string> DisplayActionSheet(string title, string cancel, string destruction, string [] buttons)
{ {
var currentPage = App.CurrentApp.Navigation.NavigationStack.Last(); var currentPage = Navigation.NavigationStack.Last();
return currentPage.DisplayActionSheet(title, cancel, destruction, buttons); return currentPage.DisplayActionSheet(title, cancel, destruction, buttons);
} }
@ -309,7 +308,7 @@ namespace BookAStar
if (isConnected) if (isConnected)
{ {
// TODO Start all cloud related stuff // TODO Start all cloud related stuff
CurrentApp.StartHubConnection(); StartHubConnection();
} }
} }
@ -324,18 +323,18 @@ namespace BookAStar
} }
} }
// Start the Hub connection // Start the Hub connection
public async void StartHubConnection () public static async void StartHubConnection ()
{ {
try try
{ {
await chatHubConnection.Start(); await chatHubConnection.Start();
} }
catch (WebException webex ) catch (WebException )
{ {
// TODO use webex, set this cx down status somewhere, // TODO use webex, set this cx down status somewhere,
// & display it & maybe try again later. // & display it & maybe try again later.
} }
catch (Exception ex) catch (Exception )
{ {
// TODO use ex // TODO use ex
} }
@ -395,7 +394,7 @@ namespace BookAStar
} }
} }
public void PostDeviceInfo() public static void PostDeviceInfo()
{ {
var info = PlatformSpecificInstance.GetDeviceInfo(); var info = PlatformSpecificInstance.GetDeviceInfo();
if (!string.IsNullOrWhiteSpace(info.GCMRegistrationId)) if (!string.IsNullOrWhiteSpace(info.GCMRegistrationId))

Loading…