//Нажатие кнопки "Отмена" private void ButtonForBack_Click(object sender, RoutedEventArgs e) { ProductSelection productSelectionPage = new ProductSelection(idReceptionFood, dateOfReceptionFood); productSelectionPage.Show(); this.Hide(); productSelectionPage.Left = (100); productSelectionPage.Top = (100); }
// Добавить продукт в перекус private void ButtonSnack_Click(object sender, RoutedEventArgs e) { String date = Convert.ToString(labelDayMonth.Content); Int32 idOfReceptionOfFood = 4; this.Hide(); ProductSelection productSelectionPage = new ProductSelection(idOfReceptionOfFood, date) { Left = (100), Top = (100) }; productSelectionPage.Show(); }