Beispiel #1
0
 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");
     }
 }
Beispiel #2
0
 private void NewShoppingList()
 {
     _shoppingListDisplayInstance = new ShoppingListDisplay(CalendarUtility.DateNextSunday(_date), txtShopping.Text);
 }