private void tSMI_Sendto_Click(object sender, EventArgs e) { List <BookInformation> data = new List <BookInformation>(); for (int i = 0, sz = listView_Books.SelectedItems.Count; i < sz; i++) { string id = listView_Books.SelectedItems[i].SubItems[0].Text; BookDetail tmp = new BookDetail(); BookList.tryFind(int.Parse(id), out tmp); data.Add(tmp.GetBookInfo()); } Form_SendTo work = new Form_SendTo(data, onlineUsers); work.ShowDialog(); }
private void tSMI_Sendto_Click(object sender, EventArgs e) { List<BookInformation> data = new List<BookInformation>(); for (int i = 0, sz = listView_Books.SelectedItems.Count; i < sz; i++) { string id = listView_Books.SelectedItems[i].SubItems[0].Text; BookDetail tmp = new BookDetail(); BookList.tryFind(int.Parse(id), out tmp); data.Add(tmp.GetBookInfo()); } Form_SendTo work = new Form_SendTo(data, onlineUsers); work.ShowDialog(); }