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