public static string GetLocalizedWeek(Schedule.Week week) { switch (week) { case Schedule.Week.BothWeeks: return(LocalizedResources.GetString("String_BothWeeks")); case Schedule.Week.WeekOne: return(LocalizedResources.Common.GetStringWeekA()); case Schedule.Week.WeekTwo: return(LocalizedResources.Common.GetStringWeekB()); default: throw new NotImplementedException(); } }
internal static async Task <bool> ConfirmDelete(string message, string title) { MessageDialog dialog = new MessageDialog(message, title); var commandDelete = new UICommand(LocalizedResources.GetString("MenuItemDelete")); var commandCancel = new UICommand(LocalizedResources.GetString("MenuItemCancel")); dialog.Commands.Add(commandDelete); dialog.Commands.Add(commandCancel); var response = await dialog.ShowAsync(); if (response == commandDelete) { return(true); } return(false); }