internal void DeleteHistory()
        {
            HistoryService.Clear();
            HistoryList = null;

            TileUpdateManager.CreateTileUpdaterForApplication().Clear();
        }
Esempio n. 2
0
 public async Task <ActionResult <string> > Delete([FromServices] HistoryService historyService)
 {
     if (await historyService.Clear())
     {
         return(Ok("Success"));
     }
     return(StatusCode(500, "Internal server error, try again later"));
 }
        private void DeleteButton_Click(object sender, EventArgs e)
        {
            HistoryService.Clear();

            MainListBox.ItemsSource = HistoryService.GetHistory();
        }