Exemplo n.º 1
0
        private void populateStoreListMisc()
        {
            StoreListView.Items.Clear();
            StoreListView.Columns.Clear();

            StoreListView.Columns.Add("Items To Buy", 105, HorizontalAlignment.Left);
            StoreListView.Columns.Add("Armor", 44, HorizontalAlignment.Right);
            StoreListView.Columns.Add("Capacity", 60, HorizontalAlignment.Right);
            StoreListView.Columns.Add("Price", 66, HorizontalAlignment.Right);
            StoreListView.Columns.Add("Owned?", 66, HorizontalAlignment.Right);

            string[] row1 = { ItemItem.TrenchCoat.Armor.ToString(), ItemItem.TrenchCoat.Capacity.ToString(), formatStringToCurrency(ItemItem.TrenchCoat.Price), Stupid.getOwned(0).ToString() };
            StoreListView.Items.Add(ItemItem.TrenchCoat.Name).SubItems.AddRange(row1);

            string[] row2 = { ItemItem.BackPack.Armor.ToString(), ItemItem.BackPack.Capacity.ToString(), formatStringToCurrency(ItemItem.BackPack.Price), Stupid.getOwned(1).ToString() };
            StoreListView.Items.Add(ItemItem.BackPack.Name).SubItems.AddRange(row2);

            string[] row3 = { ItemItem.CargoPants.Armor.ToString(), ItemItem.CargoPants.Capacity.ToString(), formatStringToCurrency(ItemItem.CargoPants.Price), Stupid.getOwned(2).ToString() };
            StoreListView.Items.Add(ItemItem.CargoPants.Name).SubItems.AddRange(row3);

            string[] row4 = { ItemItem.BodyArmor.Armor.ToString(), ItemItem.BodyArmor.Capacity.ToString(), formatStringToCurrency(ItemItem.BodyArmor.Price), Stupid.getOwned(3).ToString() };
            StoreListView.Items.Add(ItemItem.BodyArmor.Name).SubItems.AddRange(row4);

            string[] row5 = { ItemItem.Helmet.Armor.ToString(), ItemItem.Helmet.Capacity.ToString(), formatStringToCurrency(ItemItem.Helmet.Price), Stupid.getOwned(5).ToString() };
            StoreListView.Items.Add(ItemItem.Helmet.Name).SubItems.AddRange(row5);

            string[] row6 = { ItemItem.Kneepads.Armor.ToString(), ItemItem.Kneepads.Capacity.ToString(), formatStringToCurrency(ItemItem.Kneepads.Price), Stupid.getOwned(5).ToString() };
            StoreListView.Items.Add(ItemItem.Kneepads.Name).SubItems.AddRange(row6);

            string[] row7 = { ItemItem.SwatShield.Armor.ToString(), ItemItem.SwatShield.Capacity.ToString(), formatStringToCurrency(ItemItem.SwatShield.Price), Stupid.getOwned(6).ToString() };
            StoreListView.Items.Add(ItemItem.SwatShield.Name).SubItems.AddRange(row7);

            string[] row8 = { ItemItem.Calculator.Armor.ToString(), ItemItem.Calculator.Capacity.ToString(), formatStringToCurrency(ItemItem.Calculator.Price), Stupid.getOwned(7).ToString() };
            StoreListView.Items.Add(ItemItem.Calculator.Name).SubItems.AddRange(row8);
        }