Пример #1
0
        private void btn_Open_Click(object sender, RoutedEventArgs e)
        {
            Window1DataContextModel data = new Window1DataContextModel();

            data.HHName       = "赵四";
            data.ContractCode = "1003175664863";
            data.Address      = "北京市大兴区旧宫镇 住总万科广场C座11层";

            List <Window1ResultModel> rList = new List <Window1ResultModel>();

            for (int i = 0; i <= 100; i++)
            {
                Window1ResultModel r = new Window1ResultModel()
                {
                    SkuNo      = $"sku{i.ToString()}",
                    SkuName    = $"sku{i.ToString()}",
                    Amount     = i,
                    StatusName = i.ToString().Contains("3")? "未拣货" : i % 2 == 0 ? "已拣货" : "已复核",
                };
                rList.Add(r);
            }
            data.Results = new ObservableCollection <Window1ResultModel>(rList);

            Window1 w = new Window1(data);

            //w.Show();
            MultipScreenManager.ShowInScreen(w);
        }
Пример #2
0
        private void btn_Scroll_Click(object sender, RoutedEventArgs e)
        {
            ScrollWindow w = new ScrollWindow();

            MultipScreenManager.ShowInScreen(w);
        }