private void InsertAccount(string content)
        {
            string[] accs = content.Split(' ');
            if (accs.Length == 3)
            {
                //ListViewItem lvi = new ListViewItem();
                //lvi.Text = accs[0]; //lvSessions.Items.Count.ToString();
                ////lvi.SubItems.Add(accs[0]);
                //lvi.SubItems.Add(accs[1]);
                //lvi.SubItems.Add(accs[2]);
                //this.lvSessions.Items.Insert(0, lvi);
                ListViewItem lvi = cxListView1.Items.Add((cxListView1.Items.Count + 1).ToString());

                foreach (string  item in accs)
                {

                    lvi.SubItems.Add(item);
                }
                CXListView.CXListView.EXControlListViewSubItem cs = new CXListView.CXListView.EXControlListViewSubItem();
                lvi.SubItems.Add(cs);
                this.cxListView1.AddControlToSubItem(4, cxListView1.Items.Count-1, cs, DockStyle.Fill);
                cs.Btn.Text = "删除";
                cs.Btn.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular);
               // cs.Btn.Click += new EventHandler(button_Click);

            }
        }
 private void InsertAccount(Account acc)
 {
     ListViewItem lvi = cxListView1.Items.Add((cxListView1.Items.Count + 1).ToString());
     lvi.Tag = acc.id;
     lvi.SubItems.Add(acc.user);
     lvi.SubItems.Add(acc.pass);
     lvi.SubItems.Add(acc.email);
     CXListView.CXListView.EXControlListViewSubItem cs = new CXListView.CXListView.EXControlListViewSubItem();
     lvi.SubItems.Add(cs);
     this.cxListView1.AddControlToSubItem(4, cxListView1.Items.Count - 1, cs, DockStyle.Fill);
     cs.Btn.Tag = acc.id;
     cs.Btn.Text = "删除";
     cs.Btn.Font = new System.Drawing.Font("宋体", 8.25F, System.Drawing.FontStyle.Regular);
     cs.Btn.Click += new EventHandler(button_Click);
 }