Beispiel #1
0
        private void btnCreateBack_Click(object sender, EventArgs e)
        {
            if (_createButtonState == CreateButtonState.Create)
            {
                try
                {
                    ValidateSelectedActivationFunc();
                    InitializeMlp();
                }
                catch (Exception exception)
                {
                    SetStatusStrip(Color.Red, exception.Message);
                    return;
                }

                grpBoxTeach.Enabled = true;
                SwitchConfigGrpBoxControls(false);
                btnCreateBack.Text = Resources.MainForm_btnCreateBack_Click_Back_to_configuration;

                SetStatusStrip(Color.Green, Resources.MainForm_statusStripInfo_Network_created);
                _createButtonState = CreateButtonState.Back;
            }
            else
            {
                SwitchConfigGrpBoxControls(true);
                grpBoxTeach.Enabled = false;
                grpBoxTest.Enabled  = false;
                btnCreateBack.Text  = Resources.MainForm_btnCreateBack_Click_Create_a_network;

                SetStatusStrip(Color.LightBlue, "");
                _createButtonState = CreateButtonState.Create;
            }
        }
Beispiel #2
0
 private void InitializeControls()
 {
     _numLayersList = grpBoxLayers.Controls
                      .OfType <NumericUpDown>()
                      .OrderBy(num => num.Name)
                      .ToList();
     folderBrowser.SelectedPath = Application.StartupPath;
     SetDataPathAndFileComboBoxes();
     _createButtonState = CreateButtonState.Create;
     _teachButtonState  = TeachButtonState.Teach;
 }