Exemplo n.º 1
0
        private void LoadData()
        {
            List <TradeBean> list = new List <TradeBean>();

            for (int i = 0; i < 20; i++)
            {
                TradeBean bean = new TradeBean()
                {
                    Name           = "大蒜",
                    Code           = "DS00" + i,
                    UpdateTime     = DateTime.Now,
                    FirstPrice     = RandomNumber(),
                    Price          = RandomNumber(),
                    Settlement     = RandomNumber(),
                    Highest        = RandomNumber(),
                    Minimum        = RandomNumber(),
                    Newest         = RandomNumber(),
                    Number         = RandomNumber(),
                    WarehouseCount = RandomNumber()
                };
                list.Add(bean);
            }
            m_Context.Post(UpdateTable, list);
        }
Exemplo n.º 2
0
        private void fTable1_ItemClick(object sender, Events.ItemClickEventArgs e)
        {
            TradeBean bean = e.ViewHolder.UserData as TradeBean;

            MessageBox.Show(bean.Name);
        }