Example #1
0
 private void UnpinPipeline(object sender, RoutedEventArgs e)
 {
     DashboardAppBar.IsOpen = false;
     try
     {
         IList <Pipeline> projectsOnUI  = new List <Pipeline>(Projects);
         IList <object>   selectedItems = PipelinesGridView.SelectedItems;
         foreach (object item in selectedItems)
         {
             var project = item as Pipeline;
             _config.UnpinPipeline(project.PipelineName);
             projectsOnUI.Remove(project);
         }
         Projects = projectsOnUI;
     }
     catch (Exception exception)
     {
         ToastUtil.ShowExceptionToast("Failed to unpin pipelines", exception);
     }
 }