Пример #1
0
        public void BtnDeleteTrade_Click(object sender, EventArgs e)
        {
            int index = 0;

            index = lstTradeItem.SelectedIndex + 1;
            if (index == 0)
            {
                return;
            }
            Types.Shop[E_Globals.Editorindex].TradeItem[index].Item      = 0;
            Types.Shop[E_Globals.Editorindex].TradeItem[index].ItemValue = 0;
            Types.Shop[E_Globals.Editorindex].TradeItem[index].CostItem  = 0;
            Types.Shop[E_Globals.Editorindex].TradeItem[index].CostValue = 0;
            E_Editors.UpdateShopTrade();
        }