/// <summary> /// Constructor for the NewExpensePageVM /// </summary> /// <param name="current"></param> /// <param name="pg"></param> public NewExpensePageVM(ref User current, NewExpensePage pg) { currentUser = current; Category = "Please select a category..."; Date = null; page = pg; CatList = Categories.GetExpenseCategories(); pg.dteDate.DisplayDateEnd = DateTime.Now; }
private void NewExpenseClicked(object obj) { var temp = user; DisplayedPage = new NewExpensePage(ref temp); }