private void OpenDatabase()
        {
            DbDatabase.DefaultConnectionFactory = new SqlCeConnectionFactory("System.Data.SqlServerCe.4.0");
            //DbDatabase.SetInitializer<PackageDatabase>(new DropCreateCeDatabaseAlways<PackageDatabase>());
            //var dataDirectory = AppDomain.CurrentDomain.BaseDirectory ?? Environment.CurrentDirectory;
            //var conn = new SqlCeConnection(Path.Combine(dataDirectory, "PackageDatabase.sdf"));

            this._isPackageDatabaseOpen = true;

            var db = new PackageDatabase();

            this._eventAggregator.GetEvent<CompositePresentationEvent<PackageDatabaseOpenedEvent>>()
                .Publish(new PackageDatabaseOpenedEvent("Database", db));
        }
 public PackageDatabaseOpenedEvent(String name, PackageDatabase database)
 {
     this.DatabaseName = name;
     this.PackageDatabase = database;
 }