Skip to content
This repository has been archived by the owner on Aug 11, 2019. It is now read-only.

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dprice000 committed Apr 28, 2016
1 parent f976ab2 commit a86b5b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions LazyPI/LazyPI/LazyObjects/AFDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,28 @@ public class AFDatabase : BaseObject
{
private IAFDatabaseController _DBController;

private AFElements _Elements;
private AFEventFrames _EventFrames;

public AFElements Elements
{
get
{
return new AFElements(_DBController.GetElements(_Connection, _WebID));
if(_Elements == null)
_Elements = new AFElements(_DBController.GetElements(_Connection, _WebID));

return _Elements;
}
}

public AFEventFrames EventFrames
{
get
{
return new AFEventFrames(_DBController.GetEventFrames(_Connection, _WebID));
if(_EventFrames == null)
_EventFrames = new AFEventFrames(_DBController.GetEventFrames(_Connection, _WebID));

return _EventFrames;
}
}

Expand Down
2 changes: 1 addition & 1 deletion LazyPI/LazyPI/LazyObjects/AFServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public AFDatabases Databases
get
{
if(_Databases == null)
_Databases = new AFDatabases(_ServerController.GetDatabases(_Connection, _ID));
_Databases = new AFDatabases(_ServerController.GetDatabases(_Connection, _WebID));

return _Databases;
}
Expand Down

0 comments on commit a86b5b9

Please sign in to comment.