public FormMain()
        {
            InitializeComponent();
            formSelectWordList = new FormSelectWordList();
            formNewWordList    = new FormNewWordList();
            userControlButtons = new UserControlButtons()
            {
                Dock = DockStyle.Fill
            };
            formAddWords    = new FormAddWords();
            userControlEdit = new UserControlEdit(userControlButtons)
            {
                Dock = DockStyle.Fill
            };
            userControlPractice = new UserControlPractice(userControlButtons)
            {
                Dock = DockStyle.Fill
            };

            formSelectWordList.buttonSelect.Click += FormSelectWordList_ButtonSelect_Click;
            formSelectWordList.buttonCancel.Click += FormSelectWordList_ButtonCancel_Click;
            formSelectWordList.Shown           += FormSelectWordList_Shown;
            formNewWordList.buttonCreate.Click += FormNewWordList_ButtonCreate_Click;
            userControlButtons.button1.Click   += UserControlButtons_ButtonAddWord_Click;
            userControlButtons.button2.Click   += UserControlButtons_ButtonRemoveWord_Click;
            formAddWords.WordsAdded            += FormAddWords_OnWordsAdded;

            comboBoxMode.Hide();
            labelMode.Hide();
            panelData.Hide();
            panelButtons.Hide();
            panelButtons.Controls.Add(userControlButtons);
            userControlButtons.SetButtonNames("Add words", "Remove words");
            Activate();
        }
 private void ShowEditMode(UserControlEdit userControlEdit)
 {
     userControlButtons.SetButtonNames("Add words", "Remove words");
     panelData.Controls.Clear();
     panelData.Controls.Add(userControlEdit);
     panelData.Show();
     ShowAndSetComboBox(wordList.Name);
     MainFormButtonLogicHandle(this, EventArgs.Empty);
 }