private void OnListBoxDblClick(object sender, EventArgs e)
 {
     if (_idType == Identification.Scientific)
     {
         KeyValuePair <string, string> kv    = (KeyValuePair <string, string>)listBox.SelectedItem;
         EditSelectedLocalNameForm     eslnf = new EditSelectedLocalNameForm(kv.Value, kv.Key, this);
         eslnf.ShowDialog(this);
     }
 }
        private void OnContextMenuItemClick(object sender, ToolStripItemClickedEventArgs e)
        {
            e.ClickedItem.Owner.Hide();
            switch (e.ClickedItem.Name)
            {
            case "menuDelete":
                var ln = "";
                var sn = "";
                switch (_idType)
                {
                case Identification.LocalName:
                    ln = _name;
                    sn = listBox.Text;
                    break;

                case Identification.Scientific:
                    ln = listBox.Text;
                    sn = _name;
                    break;
                }
                if (Names.DeleteLocalNameSpeciesNamePair(ln, sn, _language))
                {
                    listBox.Items.Remove(listBox.SelectedItem);
                    _parentForm.RefreshLists();
                }
                break;

            case "menuAdd":
                EditSelectedLocalNameForm eslf = new EditSelectedLocalNameForm(_idType, _language, _name, this);
                eslf.ShowDialog(this);
                break;

            case "menuDetails":
                break;

            case "menuShowNavigation":
                switch (_idType)
                {
                case Identification.LocalName:
                    _parentForm.SwichViewCombo.SelectedIndex = 0;
                    break;

                case Identification.Scientific:
                    _parentForm.SwichViewCombo.SelectedIndex = 1;
                    break;
                }
                _parentForm.SetTreeItem(listBox.Text);
                break;
            }
        }