public DatabaseViewModel()
 {
   //SelectedActor = ProjectDatabase.Actors[0];
   TempDatabase = new Database();
   TempDatabase.LoadData();
   ActorVM = new ActorViewViewModel(this);
 }
Example #2
0
 /// <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>();
 }
Example #3
0
 /// <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
 }
Example #4
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public Project()
 {
   Database = new Database();
   Maps = new List<Map>();
 }