Exemplo n.º 1
0
        private void TextBlock_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            FoodDiary objFoodDiaryWindow = new FoodDiary();

            this.Visibility = Visibility.Hidden;
            objFoodDiaryWindow.Show();
        }
Exemplo n.º 2
0
        private void FD_Button_Click(object sender, RoutedEventArgs e)
        {
            FoodDiary objFDWindow = new FoodDiary();

            this.Close();
            objFDWindow.Top  = 0;
            objFDWindow.Left = 300;
            objFDWindow.Show();
        }
Exemplo n.º 3
0
        private void TextBlock_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            FoodDiary objFoodDiaryWindow = new FoodDiary();

            Close();
            objFoodDiaryWindow.Top  = 0;
            objFoodDiaryWindow.Left = 300;
            objFoodDiaryWindow.Show();
        }
Exemplo n.º 4
0
        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);
            }
        }