private void ToolStripButtonAddTimeCorrection_Click(object sender, EventArgs e) { var FormTC = new FormTimeCorrection(_plugin); if (FormTC.ShowDialog() == DialogResult.OK) { ListViewTimeCorrectionList.Items.Add(FormTC.ComboBoxUrlTimeCorrection.Text, 0); } }
private void ToolStripButtonPropertiesTimeCorrection_Click(object sender, EventArgs e) { if (ListViewTimeCorrectionList.SelectedItems.Count == 1) { ListViewItem ThisItem = ListViewTimeCorrectionList.SelectedItems[0]; var FormTC = new FormTimeCorrection(_plugin, ThisItem.Text); if (FormTC.ShowDialog() == DialogResult.OK) { ThisItem.SubItems[0].Text = FormTC.ComboBoxUrlTimeCorrection.Text; ThisItem.SubItems[1].Text = string.Empty; ThisItem.ImageIndex = 0; } } }