Exemplo n.º 1
0
        private void Initialize()
        {
            _orderInfoManager = OrderInfoManager.Instance;
            if (!_orderInfoManager.Initialized)
            {
                _orderInfoManager.Initialize();
            }

            _orderInfoManager.GetAll(out _orderInfos);

            Debug.WriteLine("?");
            int startIdx = _currentPage * _maxShow;

            Debug.WriteLine("startIdx : " + startIdx);
            Debug.WriteLine("_orderInfos.Count : " + _orderInfos.Count);
            if (startIdx < _orderInfos.Count)
            {
                Debug.WriteLine("startIdx : " + startIdx);
                Debug.WriteLine("_orderInfos.Count : " + _orderInfos.Count);
                if (startIdx + _maxShow > _orderInfos.Count)
                {
                    Debug.WriteLine("AAAAAA");
                    _orderInfoList = _orderInfos.GetRange(startIdx, _orderInfos.Count - startIdx);
                }
                else
                {
                    Debug.WriteLine("BBBBB");
                    _orderInfoList = _orderInfos.GetRange(startIdx, _maxShow);
                }
                TestList.ItemsSource = _orderInfoList;
            }
        }
Exemplo n.º 2
0
        public WelcomePage()
        {
            InitializeComponent();

            OrderInfoManager OIManager = OrderInfoManager.Instance;

            if (!OIManager.Initialized)
            {
                OIManager.Initialize();
            }

            OrderInfo oi  = new OrderInfo("테스트", "010-1111-2222");
            OrderInfo oi2 = new OrderInfo("테스트2", "01011123334");

            Debug.WriteLine(oi.ToString());
            Debug.WriteLine(oi2.ToString());
        }