private void GetExistingShoppingListFromFile() { _shoppingListDisplayInstance = new ShoppingListDisplay(CalendarUtility.DateNextSunday(_date)); if (_shoppingListDisplayInstance.ShoppingListObject != null) { txtShopping.Text = _shoppingListDisplayInstance.ShoppingListObject.shoppingList; grbShopping.Text = @"Shopping List For" + CalendarUtility.DateNextSunday(_date).ToString(" d") + CalendarUtility.AddDateSuffix(CalendarUtility.DateNextSunday(_date).Day) + CalendarUtility.DateNextSunday(_date).ToString(" MMMM"); } else { grbShopping.Text = @"Shopping List For" + CalendarUtility.DateNextSunday(_date).ToString(" d") + CalendarUtility.AddDateSuffix(CalendarUtility.DateNextSunday(_date).Day) + CalendarUtility.DateNextSunday(_date).ToString(" MMMM"); } }
private void NewShoppingList() { _shoppingListDisplayInstance = new ShoppingListDisplay(CalendarUtility.DateNextSunday(_date), txtShopping.Text); }