Beispiel #1
0
        private void InitializeDGV()
        {
            // Goods
            DGV_UGGoods.Rows.Add(SAV4Sinnoh.UG_POUCH_SIZE);

            Item_Goods.DataSource   = new BindingSource(ugGoodsSorted, null);
            Item_Goods.DisplayIndex = 0;
            DGV_UGGoods.CancelEdit();

            // Spheres
            DGV_UGSpheres.Rows.Add(MAX_SIZE);

            Item_Spheres.DataSource   = new BindingSource(ugSpheres, null);
            Item_Spheres.DisplayIndex = 0;
            DGV_UGSpheres.CancelEdit();

            // Traps
            DGV_UGTraps.Rows.Add(MAX_SIZE);

            Item_Traps.DataSource   = new BindingSource(ugTrapsSorted, null);
            Item_Traps.DisplayIndex = 0;
            DGV_UGTraps.CancelEdit();

            // Treasures
            DGV_UGTreasures.Rows.Add(MAX_SIZE);

            Item_Treasures.DataSource   = new BindingSource(ugTreasuresSorted, null);
            Item_Treasures.DisplayIndex = 0;
            DGV_UGTreasures.CancelEdit();
        }
Beispiel #2
0
        private void InitializeDGV()
        {
            ugGoods     = GameInfo.Strings.uggoods;
            ugSpheres   = GameInfo.Strings.ugspheres;
            ugTraps     = GameInfo.Strings.ugtraps;
            ugTreasures = GameInfo.Strings.ugtreasures;

            // Goods
            ugGoodsSorted = SanitizeList(ugGoods);
            DGV_UGGoods.Rows.Add(SAV4Sinnoh.UG_POUCH_SIZE);

            Item_Goods.DataSource   = new BindingSource(ugGoodsSorted, null);
            Item_Goods.DisplayIndex = 0;
            DGV_UGGoods.CancelEdit();

            // Spheres
            DGV_UGSpheres.Rows.Add(MAX_SIZE);

            Item_Spheres.DataSource   = new BindingSource(ugSpheres, null);
            Item_Spheres.DisplayIndex = 0;
            DGV_UGSpheres.CancelEdit();

            // Traps
            ugTrapsSorted = SanitizeList(ugTraps);
            DGV_UGTraps.Rows.Add(MAX_SIZE);

            Item_Traps.DataSource   = new BindingSource(ugTrapsSorted, null);
            Item_Traps.DisplayIndex = 0;
            DGV_UGTraps.CancelEdit();

            // Treasures
            ugTreasuresSorted = SanitizeList(ugTreasures);
            DGV_UGTreasures.Rows.Add(MAX_SIZE);

            Item_Treasures.DataSource   = new BindingSource(ugTreasuresSorted, null);
            Item_Treasures.DisplayIndex = 0;
            DGV_UGTreasures.CancelEdit();
        }