Exemplo n.º 1
0
        private void AddRecipeBtn_OnClick(object sender, RoutedEventArgs e)
        {
            AddDish addRecipePage = new AddDish();

            addRecipePage.ShowDialog();
            MenuGrid.ItemsSource = GetItems(1).ToList();
        }
Exemplo n.º 2
0
        private void Panel_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            UIElement panel = sender as UIElement;
            int       x, y;

            x = Grid.GetColumn(panel);
            y = Grid.GetRow(panel);
            AddDish dialog = new AddDish(Dishes[x, y].DataObject);

            dialog.ShowDialog();
        }