Example #1
0
//_________________________________________________________________________________________________________________________________________________________


        private void AddItemToUnitePlTemplateBtn_Click(object sender, EventArgs e)
        {
            UnPlTemplateListBox.BeginUpdate();
            UnPlTemplateListBox.Items.Add(UnPlSourceListBox.SelectedItem);
            UnPlTemplateListBox.EndUpdate();
            UnPlTemplateListBox.Refresh();
        }
Example #2
0
//_________________________________________________________________________________________________________________________________________________________


        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();
        }