private void TextBlock_PreviewMouseDown(object sender, MouseButtonEventArgs e) { FoodDiary objFoodDiaryWindow = new FoodDiary(); this.Visibility = Visibility.Hidden; objFoodDiaryWindow.Show(); }
private void FD_Button_Click(object sender, RoutedEventArgs e) { FoodDiary objFDWindow = new FoodDiary(); this.Close(); objFDWindow.Top = 0; objFDWindow.Left = 300; objFDWindow.Show(); }
private void TextBlock_PreviewMouseDown(object sender, MouseButtonEventArgs e) { FoodDiary objFoodDiaryWindow = new FoodDiary(); Close(); objFoodDiaryWindow.Top = 0; objFoodDiaryWindow.Left = 300; objFoodDiaryWindow.Show(); }
public AddProductToMeal(FoodDiary diary, string mealType) { InitializeComponent(); this.diary = diary; this.mealType = mealType; IProductsProvider provider = new XMLProductsParser(); products = provider.GetAllProducts(); if (products == null) { return; } foreach (Product p in products) { ProductInput.Items.Add(p.Name); } }