예제 #1
0
        private void open_Dish(Dish dish)
        {
            Specific_dishPage page = new Specific_dishPage(dish, this);

            grid = page.drawGrid(grid);
            grid = page.drawComponent(grid);
        }
예제 #2
0
        private void List_SelectionChanged_D(object sender, SelectionChangedEventArgs e)
        {
            int index = list.SelectedIndex;
            Specific_dishPage page = new Specific_dishPage((Dish)list.Items[index], this.page);

            grid = page.drawGrid(grid);
            grid = page.drawComponent(grid);
        }
예제 #3
0
        private void dieta_SelectedIndexChanged(object sender, SelectionChangedEventArgs e)
        {
            int  index             = listBox2.SelectedIndex;
            Dish dish              = (Dish)listBox2.Items[index];
            Specific_dishPage page = new Specific_dishPage(dish, this);

            grid = page.drawGrid(grid);
            grid = page.drawComponent(grid);
        }
예제 #4
0
        private void HelperD_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            TabItem           item     = (TabItem)tab.Items[tab.SelectedIndex];
            ListBox           tempList = (ListBox)item.Content;
            Specific_dishPage page     = new Specific_dishPage((Dish)tempList.Items[tempList.SelectedIndex], this.page);

            grid = page.drawGrid(grid);
            grid = page.drawComponent(grid);
        }