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); }
public ApplicationOptions() { Window = new WindowOptions(); Project = new ProjectOptions(); Editor = new EditorOptions(); }