/// <summary> /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private async void DeleteClicked(object sender, EventArgs args) { if (sender is MenuItem menuItem && menuItem.CommandParameter is ApixuPlace model) { if (await XameteoDialogs.PromptYesNo(Resx.Resources.Remove_Title, string.Format(Resx.Resources.Remove_Message, model.Forecast.Location))) { XameteoApp.Instance.RemovePlace(model); } } }
/// <summary> /// </summary> private async void ResetSettings(SettingsModel source) { if (await XameteoDialogs.PromptYesNo(Resources.Reset_Title, Resources.Reset_Prompt) == false) { return; } Items.Clear(); XameteoApp.Instance.ResetSettngs(); RefreshView(); }