Exemple #1
0
        private void btnAddLicense_Click(object sender, EventArgs e)
        {
            if (lvResults.SelectedItems.Count > 0)
            {
                TextInfo info = lvResults.SelectedItems[0].Tag as TextInfo;

                if (info != null)
                {
                    info.WriteNewText();
                    lvResults.Items.Remove(lvResults.SelectedItems[0]);
                }
            }
        }
Exemple #2
0
        private void btnAddLicenseAll_Click(object sender, EventArgs e)
        {
            foreach (ListViewItem lvi in lvResults.Items)
            {
                TextInfo info = lvi.Tag as TextInfo;

                if (info != null)
                {
                    info.WriteNewText();
                }
            }

            lvResults.Items.Clear();
        }