Ejemplo n.º 1
0
        private void DeleteWorkTypecmd(object obj)
        {
            var worktype = obj as WorkType;

            if (OnMessageBoxEvent("Do you want to delete this entry?"))
            {
                WorkTypes.Remove(worktype);
            }
        }
 public void RemoveItem(WorkTypeTileViewModel tileToRemove)
 {
     WorkTypes.Remove(tileToRemove);
     Parent.WasChanged = true;
     if (tileToRemove.Id != 0)
     {
         Parent.Parent.workTypeToDeleteIds.Add(tileToRemove.Id);
     }
 }