private void button13_Click(object sender, EventArgs e)
        {
            //解除装备
            string        midname = Convert.ToString(al[23]);
            loaddat       ld      = new loaddat();
            shoptrade     st      = new shoptrade();
            equipmentwear ew      = new equipmentwear();

            ew.equioff(al, ld.loadweapon(midname), 23);
            st.getsomething(al, ld.loadweapon(midname), 1);
            f5();
        }
        private void button11_Click(object sender, EventArgs e)
        {
            try
            {
                int    i;
                string midname = Convert.ToString(al[23]);
                i = listBox2.SelectedIndex;
                listBox3.SelectedIndex = i;
                loaddat       ld = new loaddat();
                shoptrade     st = new shoptrade();
                equipmentwear ew = new equipmentwear();
                ew.equioff(al, ld.loadweapon(midname), 23);
                st.getsomething(al, ld.loadweapon(midname), 1);

                ew.equiwear(al, ld.loadweapon(listBox3.Text), 23);
                if (Convert.ToString(al[23]) != "0")
                {
                    st.destroysomething(al, ld.loadweapon(listBox3.Text), 1);
                    MessageBox.Show("你成功装备了" + weaponIDtostr(Convert.ToString(listBox3.Text)) + "。");
                }
                else
                {
                    //ew.equiwear(al, ld.loadweapon(midname), 23);
                    //st.destroysomething(al, ld.loadweapon(midname), 1);
                    MessageBox.Show("装备" + weaponIDtostr(Convert.ToString(listBox3.Text)) + "失败。");
                }



                f5();
            }
            catch (Exception)
            {
                MessageBox.Show("请选择一个要装备的物品!");
            }
        }