// Переход на с раницу "Дневник питания" private void FoodDiaryPage_Click(object sender, RoutedEventArgs e) { this.Hide(); FoodDiary foodDiaryPage = new FoodDiary(); foodDiaryPage.Left = (100); foodDiaryPage.Top = (100); foodDiaryPage.Show(); }
//Переход к предыдущему окну при нажатии кнопки "Отмена" private void ButtonAnnulment_Click(object sender, RoutedEventArgs e) { this.Hide(); FoodDiary foodDiaryPage = new FoodDiary { Left = (100), Top = (100) }; foodDiaryPage.Show(); }
public ChangeOrDeleteProdDish(String nameOfProdDish, String receptionFood, String dateOfReceptionFood, FoodDiary fD) { InitializeComponent(); this.nameOfProdDish = nameOfProdDish; this.receptionFood = receptionFood; this.dateOfReceptionFood = dateOfReceptionFood; this.fD = fD; SearchUnitsOfProductOrDishInBD(); SearchDataOfProdOrDishInBD(); }