void AppendByAccount() { UIAccountEditor ui = new UIAccountEditor(); if (ui.ShowDialog(this) == DialogResult.OK) { Account act = new Account(); ui.CurrentAccount.CopyTo(act); if (_e.AppendAccount(act)) { ListViewItem item = new ListViewItem(); item.Text = act.Name; item.ImageKey = "all"; item.SubItems.Add(act.ID); if (System.IO.File.Exists(act.FullPath)) { item.SubItems.Add("正常"); } else { item.SubItems.Add("数据库丢失"); } item.SubItems.Add(act.Description); item.SubItems.Add(act.FullPath); listView1.Items.Add(item); } } }