ATMLCommonLibrary.controls.switching.SwitchForm.SetSwitchSelection C# (CSharp) Method

SetSwitchSelection() private method

private SetSwitchSelection ( ) : void
return void
        private void SetSwitchSelection()
        {
            matrixSwitchControl.Enabled = matrixSwitchControl.Visible = false;
            switchControl.Enabled = switchControl.Visible = false;
            crossPointSwitchControl.Enabled = crossPointSwitchControl.Visible = false;

            if (SWITCH.Equals(cmbSwitchType.SelectedItem))
            {
                Text = SWITCH;
                switchControl.Enabled = switchControl.Visible = true;
                if (cmbSwitchType.Enabled && switchControl.Switch == null)
                    switchControl.Switch = new Switch();
            }
            else if (MATRIX_SWITCH.Equals(cmbSwitchType.SelectedItem))
            {
                Text = MATRIX_SWITCH;
                matrixSwitchControl.Enabled = matrixSwitchControl.Visible = true;
                if (cmbSwitchType.Enabled && matrixSwitchControl.MatrixSwitch == null)
                    matrixSwitchControl.MatrixSwitch = new MatrixSwitch();
            }
            else if (CROSS_POINT_SWITCH.Equals(cmbSwitchType.SelectedItem))
            {
                Text = CROSS_POINT_SWITCH;
                crossPointSwitchControl.Enabled = crossPointSwitchControl.Visible = true;
                if (cmbSwitchType.Enabled && crossPointSwitchControl.CrossPointSwitch == null)
                    crossPointSwitchControl.CrossPointSwitch = new CrossPointSwitch();
            }
        }