public DatabaseViewModel() { //SelectedActor = ProjectDatabase.Actors[0]; TempDatabase = new Database(); TempDatabase.LoadData(); ActorVM = new ActorViewViewModel(this); }
/// <summary> /// Constructor. /// </summary> /// <param name="name">The name of the project to create.</param> /// <param name="path">Path where the project will be created.</param> public Project(string name, string path) { Name = name; Database = new Database(); _path = path; Maps = new List<Map>(); }
/// <summary> /// Copies the data from the given <paramref name="tempDatabase"/> /// to this database. /// </summary> /// <param name="tempDatabase"></param> public void CopyData(Database tempDatabase) { Actors = tempDatabase.Actors; // todo: copy other data }
/// <summary> /// Constructor. /// </summary> public Project() { Database = new Database(); Maps = new List<Map>(); }