Пример #1
0
 public void Reset()
 {
     _instance = new ProjectSettings();
 }
Пример #2
0
        public void LoadProject(string projectPath)
        {
            using (FileStream fs = new FileStream(projectPath + "\\project.dreamproj", FileMode.Open))
            {
                XmlSerializer serializer = new XmlSerializer(GetType());
                _instance = (ProjectSettings)serializer.Deserialize(fs);
            }

            _instance.Location = projectPath;
        }