private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                int i;
                i = listBox5.SelectedIndex;
                listBox7.SelectedIndex = i;
                listBox8.SelectedIndex = i;
                int j = Convert.ToInt32(textBox1.Text);

                if (true)
                {
                    ArrayList newwp = new ArrayList();
                    string    name  = listBox8.Text;
                    //读取武器


                    FileStream      fs = new FileStream(".\\data\\weapon\\" + name + ".dat", FileMode.Open);
                    BinaryFormatter bf = new BinaryFormatter();//反序列化
                    newwp = bf.Deserialize(fs) as ArrayList;
                    fs.Close();
                    shoptrade st = new shoptrade();
                    st.sellsomething(al, newwp, j);
                }
                else
                {
                    MessageBox.Show("出错");
                }

                f5();
            }
            catch (Exception)
            {
                MessageBox.Show("请选择一个武器!");
            }
        }