public EventModel(DBLayer.Event e)
 {
     this._dbObj = e;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SubEventModel"/> class.
 /// </summary>
 /// <param name="s">SubEvent database entity object.</param>
 public SubEventModel(DBLayer.SubEvent s)
 {
     this._dbObj = s;
 }
 public BudgetItemModel(DBLayer.BudgetItem b)
 {
     this._dbObj = b;
 }
 public void SetLoggedInUser(DBLayer.Student s)
 {
     this._loggedInUser = s;
     this.actionsPanel.Visibility = Visibility.Visible;
 }
 public BudgetModel(DBLayer.Budget b)
 {
     this._dbObj = b;
 }
 public void Login(DBLayer.Student s)
 {
     _loggedInUser = s;
 }