Пример #1
0
        public void New()
        {
            Settings.Reset();
            Layers.Clear();
            TextStyles.Clear();
            Composites.Clear();
            Model.Clear();
            Jigged.Clear();
            Transients.Clear();

            FileName   = "";
            IsModified = false;
        }
Пример #2
0
        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;
            }
        }