예제 #1
0
        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();
        }
예제 #2
0
파일: Form_Main.cs 프로젝트: cfrpg/Publish
 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();
 }