public void DestroyNewItemModel() { this.sampleObjects.Clear(); this.sampleObjects = null; this.newItemModel.SetSource(null); this.newItemModel = null; }
public void InitializeNewItemModel() { this.sampleObjects = SampleObject.GetCollection(); this.newItemModel = new NewItemModel(); this.newItemModel.SetSource(DataWrapper.Wrap(this.sampleObjects)); }