private void addExistingItem(String name) { ScratchAreaItem item = new ScratchAreaItem(name, this); items.Add(item); onItemAdded(item); }
public void addItem(String name, Saveable data) { ScratchAreaItem item = new ScratchAreaItem(name, this); item.serialize(data); items.Add(item); onItemAdded(item); }
public void removeItem(ScratchAreaItem item) { if (item != null && items.Remove(item)) { item.deleteFile(); onItemRemoved(item); } }