//_________________________________________________________________________________________________________________________________________________________ private void AddItemToUnitePlTemplateBtn_Click(object sender, EventArgs e) { UnPlTemplateListBox.BeginUpdate(); UnPlTemplateListBox.Items.Add(UnPlSourceListBox.SelectedItem); UnPlTemplateListBox.EndUpdate(); UnPlTemplateListBox.Refresh(); }
//_________________________________________________________________________________________________________________________________________________________ private void RemItemToUnitePlTemplateBtn_Click(object sender, EventArgs e) { UnPlTemplateListBox.BeginUpdate(); UnPlTemplateListBox.Items.RemoveAt(UnPlTemplateListBox.SelectedIndex); if (UnPlTemplateListBox.Items.Count != 0) { UnPlTemplateListBox.SelectedIndex = 0; } else { RemItemToUnitePlTemplateBtn.Enabled = false; } UnPlTemplateListBox.EndUpdate(); UnPlTemplateListBox.Refresh(); }