示例#1
0
文件: CForm.cs 项目: windrobin/kumpro
        private void bCopyCsv_Click(object sender, EventArgs e)
        {
            CSVw w = new CSVw();

            foreach (ListViewItem lvi in lvR.Items)
            {
                w.Write(lvi.ImageKey);
                foreach (ListViewItem.ListViewSubItem i in lvi.SubItems)
                {
                    w.Write(i.Text);
                }
                w.EOL();
            }

            Clipboard.SetText(w.ToString());

            MessageBox.Show(this, "Done.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
示例#2
0
文件: CForm.cs 项目: windrobin/kumpro
        private void bCopyCsv_Click(object sender, EventArgs e) {
            CSVw w = new CSVw();
            foreach (ListViewItem lvi in lvR.Items) {
                w.Write(lvi.ImageKey);
                foreach (ListViewItem.ListViewSubItem i in lvi.SubItems) {
                    w.Write(i.Text);
                }
                w.EOL();
            }

            Clipboard.SetText(w.ToString());

            MessageBox.Show(this, "Done.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }