private void CreateControl(int selectedMethodControl)
        {
            UserControl control = null;

            if (selectedMethodControl.Equals(Constants.EIGEN_FACE))
            {
                control = new EigenFaceControl();
            }
            else if (selectedMethodControl.Equals(Constants.ONE_LAYER_BACK_PROPAGATION))
            {
                control = new NeuralNetworksControl(Constants.ONE_LAYER_BACK_PROPAGATION);
            }
            else if (selectedMethodControl.Equals(Constants.TWO_LAYER_BACK_PROPAGATION))
            {
                control = new NeuralNetworksControl(Constants.TWO_LAYER_BACK_PROPAGATION);
            }
            else if (selectedMethodControl.Equals(Constants.THREE_LAYER_BACK_PROPAGATION))
            {
                control = new NeuralNetworksControl(Constants.THREE_LAYER_BACK_PROPAGATION);
            }

            if (TuningStackPanel.Children.Count > 0)
            {
                TuningStackPanel.Children.RemoveRange(0, TuningStackPanel.Children.Count);
            }

            TuningStackPanel.Children.Add(control);
            TuningStackPanel.Visibility = Visibility.Visible;
        }
Beispiel #2
0
        private void CreateControl(int selectedMethodControl)
        {
            UserControl control = null;

            if (selectedMethodControl.Equals(FaceRecognition.RecognitionMethods.Constants.EigenFace))
            {
                control = new EigenFaceControl();
            }
            else if (selectedMethodControl.Equals(FaceRecognition.RecognitionMethods.Constants.OneLayerBackPropagation))
            {
                control = new NeuralNetworksControl();
            }

            if (TuningStackPanel.Children.Count > 0)
            {
                TuningStackPanel.Children.RemoveRange(0, TuningStackPanel.Children.Count);
            }

            TuningStackPanel.Children.Add(control);
            TuningStackPanel.Visibility = Visibility.Visible;
        }