Exemple #1
0
        public void BuildDetailList()
        {
            _listDetails.Clear();
            Array vals = Enum.GetValues(typeof(WorldDetailType));
            foreach (int i in vals)
            {
                WorldDetailItem item = new WorldDetailItem();
                item.DetailType = (WorldDetailType)i;
                item.DetailName = item.DetailType.ToString();
                item.Value = 0;

                _listDetails.Add(item);
            }
            gridControl1.DataSource = _listDetails;
        }
Exemple #2
0
        public void BuildDetailList()
        {
            _listDetails.Clear();
            Array vals = Enum.GetValues(typeof(WorldDetailType));

            foreach (int i in vals)
            {
                WorldDetailItem item = new WorldDetailItem();
                item.DetailType = (WorldDetailType)i;
                item.DetailName = item.DetailType.ToString();
                item.Value      = 0;

                _listDetails.Add(item);
            }
            gridControl1.DataSource = _listDetails;
        }