Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WindowsPhone: Added app icon, splash, icons for sync list, etc. Also …
…SyncDiscoveryService is now functional in async, but the number of concurrent connections should be limited. Related to issue #424.
- Loading branch information
1 parent
8c814eb
commit 475596b
Showing
23 changed files
with
218 additions
and
73 deletions.
There are no files selected for viewing
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
47 changes: 47 additions & 0 deletions
47
MPfm/MPfm.WindowsPhone/Classes/Helpers/ResolutionHelper.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System; | ||
|
||
namespace MPfm.WindowsPhone.Classes.Helpers | ||
{ | ||
/// <summary> | ||
/// http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206974(v=vs.105).aspx | ||
/// </summary> | ||
public static class ResolutionHelper | ||
{ | ||
public enum Resolutions { WVGA, WXGA, HD720p }; | ||
|
||
private static bool IsWvga | ||
{ | ||
get | ||
{ | ||
return App.Current.Host.Content.ScaleFactor == 100; | ||
} | ||
} | ||
|
||
private static bool IsWxga | ||
{ | ||
get | ||
{ | ||
return App.Current.Host.Content.ScaleFactor == 160; | ||
} | ||
} | ||
|
||
private static bool Is720p | ||
{ | ||
get | ||
{ | ||
return App.Current.Host.Content.ScaleFactor == 150; | ||
} | ||
} | ||
|
||
public static Resolutions CurrentResolution | ||
{ | ||
get | ||
{ | ||
if (IsWvga) return Resolutions.WVGA; | ||
else if (IsWxga) return Resolutions.WXGA; | ||
else if (Is720p) return Resolutions.HD720p; | ||
else throw new InvalidOperationException("Unknown resolution"); | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
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
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
Oops, something went wrong.