示例#1
0
        private void btnAddSub_Click(object sender, EventArgs e)
        {
            AddSubtitle addSubtitle = new AddSubtitle();
            if (addSubtitle.ShowDialog() == DialogResult.OK)
            {
                ListViewItem lvi = new ListViewItem(addSubtitle.subLang);
                lvi.SubItems.Add(addSubtitle.subFilePath);

                lvSubtitles.Items.Add(lvi);
            }

            lvSubtitles.Refresh();
        }
示例#2
0
        private void btnAddSub_Click(object sender, EventArgs e)
        {
            AddSubtitle addSubtitle = new AddSubtitle();

            if (addSubtitle.ShowDialog() == DialogResult.OK)
            {
                ListViewItem lvi = new ListViewItem(addSubtitle.subLang);
                lvi.SubItems.Add(addSubtitle.subFilePath);

                lvSubtitles.Items.Add(lvi);
            }

            lvSubtitles.Refresh();
        }