void editorControl_ExpertUpdateEvent(ExpertEditorControl editorControl)
 {
     this.UpdateUI(true);
 }
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            if (listViewExperts.SelectedItems.Count != 1)
            {
                return;
            }

            ExpertInformation info = (ExpertInformation)listViewExperts.SelectedItems[0].Tag;

            foreach (TabPage page in tabControlExperts.TabPages)
            {
                ExpertEditorControl control = (ExpertEditorControl)page.Controls[0];
                if (control.ExpertInformation == info)
                {// Already editting it.
                    tabControlExperts.SelectedTab = page;
                    return;
                }
            }

            ExpertEditorControl editorControl = new ExpertEditorControl();
            editorControl.ExpertInformation = info;
            editorControl.ExpertUpdateEvent += new ExpertEditorControl.ExpertUpdatedDelegate(editorControl_ExpertUpdateEvent);
            TabPage newPage = new TabPage(info.Name);
            editorControl.Dock = DockStyle.Fill;
            newPage.Controls.Add(editorControl);
            tabControlExperts.TabPages.Add(newPage);
            tabControlExperts.SelectedTab = newPage;
        }