Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            for (int i = 0; i < 5; i++)
            {
                cateBtn btn = new cateBtn("test" + i.ToString());
                catePanel.Children.Add(btn);
            }
            for (int i = 0; i < 5; i++)
            {
                foodBtn btn = new foodBtn("test" + i.ToString());
                foodPanel.Children.Add(btn);
            }
            OrderDetailItem oderitem = new OrderDetailItem();

            orderDetailPanel.Children.Add(oderitem);
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();
            for (int i = 0; i < 5; i++)
            {
                cateBtn btn = new cateBtn("test"+i.ToString());
                catePanel.Children.Add(btn);

            }
            for (int i = 0; i < 5; i++)
            {

                foodBtn btn = new foodBtn("test" + i.ToString());
                foodPanel.Children.Add(btn);
            }
            OrderDetailItem oderitem = new OrderDetailItem();
            orderDetailPanel.Children.Add(oderitem);
        }