Ejemplo n.º 1
0
        private void RemoveBuild(object obj)
        {
            _mainViewModel.RemoveBuild(SelectedBuild !.Build);
            Builds.Remove(SelectedBuild);

            SelectedBuild = null;
        }
Ejemplo n.º 2
0
 private void RemoveBuilds(Build b)
 {
     if (Builds.Any())
     {
         var old = Builds.FirstOrDefault(x => x.Id == b.Id);
         if (old != null)
         {
             Builds.Remove(old);
         }
     }
 }
 private void ExecuteDeleteCommand()
 {
     Builds.Remove(SelectedBuild);
     SelectedBuild = Builds.Count > 0 ? Builds[Builds.Count - 1] : null;
 }