private void ButtonFunction_Click(object sender, EventArgs e)
 {
     Sampler.HardcodedSampling(Functions.GetFunction(comboBoxFunction.SelectedItem.ToString()), out _instance, _parser);
     InputParams.FillTrainSetChoices(loadTrainSet, comboBoxFunction);
     buttonLoadTrainSet.Enabled = loadTrainSet.SelectedItem != null;
     panelFunction.Visible      = false;
 }
 private void ButtonTrainSet_Click(object sender, EventArgs e)
 {
     UiHandler.SetSlider(panelSlider, buttonTrainSet.Top, buttonTrainSet.Height);
     InputParams.FillTrainSetChoices(loadTrainSet, comboBoxFunction);
     buttonTrain.Enabled   = false;
     buttonResult.Enabled  = false;
     panelFunction.Visible = false;
     UiHandler.PanelVisible(panelTrainSet, _panels);
     if (!(_ann is null))
     {
         _ann.ForcedStop = true;
     }
 }
        // ______________________________________________________________

        //
        // Train set panel
        //
        private void ParamsPanel_Visible(object sender, EventArgs e)
        {
            if (!(sender is Panel panel))
            {
                return;
            }
            if (!panel.Visible)
            {
                return;
            }

            InputParams.FillTrainSetChoices(loadTrainSet, comboBoxFunction);
            buttonLoadTrainSet.Enabled = loadTrainSet.SelectedItem != null;
        }