Exemple #1
0
        private void DetailSteps_Click(object sender, RoutedEventArgs e)
        {
            Button      temp             = (Button)sender;
            int         DishCode         = (int)(temp.Tag);
            List <Step> steps            = Step.getAllStepsInDish(DishCode);
            var         addedStepsScreen = new AddedStepWindow(steps);

            addedStepsScreen.Dying += OpenThis;
            addedStepsScreen.Show();
            this.Hide();
        }
Exemple #2
0
 private void FinishStep_Click(object sender, RoutedEventArgs e)
 {
     if (steps.Count == 0)
     {
         MessageBox.Show("Bạn chưa thêm bước làm nào cả");
     }
     else
     {
         var addedStepsScreen = new AddedStepWindow(steps);
         addedStepsScreen.Show();
     }
 }