Exemple #1
0
        private void editToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ListViewItem item = GetSelectedItem(downloaderList);

            if (item == null)
            {
                return;
            }

            DownloaderDialog bd = (DownloaderDialog)item.Tag;

            if (bd.ShowDialog() == DialogResult.OK)
            {
                item.Text = bd.Url;
            }
        }
Exemple #2
0
        private void addToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            DownloaderDialog bd = new DownloaderDialog();


            if (bd.ShowDialog() == DialogResult.OK)
            {
                // Icon ico = Icon.ExtractAssociatedIcon(bd.FileName);
                ListViewItem item = new ListViewItem();
                //  binderImageList.Images.Add(bd.FileName, ico);
                //item.ImageKey = bd.FileName;
                item.Text = bd.Url;
                item.Tag  = bd;
                downloaderList.Items.Add(item);
            }
        }