예제 #1
0
 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;
 }
예제 #2
0
 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;
     }
 }
예제 #3
0
        // ______________________________________________________________

        //
        // 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;
        }