public void Load()
        {
            var settings = (File.Exists(FileName)) ?
                _serializer.Value.DeserializeFromFile<ApplicationOptions>(FileName) :
                new ApplicationOptions();

            Window = settings.Window;
            Project = settings.Project;
            Editor = settings.Editor;

            Loaded.Raise(this);
        }
示例#2
0
 public ApplicationOptions()
 {
     Window  = new WindowOptions();
     Project = new ProjectOptions();
     Editor  = new EditorOptions();
 }
 public ApplicationOptions()
 {
     Window = new WindowOptions();
     Project = new ProjectOptions();
     Editor = new EditorOptions();
 }