public void New() { Settings.Reset(); Layers.Clear(); TextStyles.Clear(); Composites.Clear(); Model.Clear(); Jigged.Clear(); Transients.Clear(); FileName = ""; IsModified = false; }
public void Open(Stream stream) { using (var reader = new DocumentReader(this, stream)) { Editor.PickedSelection.Clear(); Jigged.Clear(); Transients.Clear(); Settings.Load(reader); Layers.Load(reader); TextStyles.Load(reader); Composites.Load(reader); Model.Load(reader); FileName = ""; IsModified = false; } }