public static LaunchAppArguements ParseArguementString(string arguements) { Guid tileId = Guid.Empty; var launchArguements = new LaunchAppArguements(); string[] s = arguements.Split('/'); if (Guid.TryParse(s[0], out tileId)) { if (tileId != Guid.Empty) { launchArguements.TileId = tileId; if (s[1].Equals("Document")) { //service.NavigateTo(NavigationSource.DocumentView.ToString(), tileId); launchArguements.PageDestinationType = NavigationSource.DocumentView.ToString(); } else { //service.NavigateTo(NavigationSource.CurrentCategoryView.ToString(), tileId); launchArguements.PageDestinationType = NavigationSource.CurrentCategoryView.ToString(); } } } return(launchArguements); }
public static LaunchAppArguements ParseArguementString(string arguements) { Guid tileId = Guid.Empty; var launchArguements = new LaunchAppArguements(); string[] s = arguements.Split('/'); if (Guid.TryParse(s[0], out tileId)) { if (tileId != Guid.Empty) { launchArguements.TileId = tileId; if (s[1].Equals("Document")) //service.NavigateTo(NavigationSource.DocumentView.ToString(), tileId); launchArguements.PageDestinationType = NavigationSource.DocumentView.ToString(); else //service.NavigateTo(NavigationSource.CurrentCategoryView.ToString(), tileId); launchArguements.PageDestinationType = NavigationSource.CurrentCategoryView.ToString(); } } return launchArguements; }