VixenApplication.ConfigControllers._PopulateFormWithController C# (CSharp) Method

_PopulateFormWithController() private method

private _PopulateFormWithController ( OutputController oc ) : void
oc OutputController
return void
        private void _PopulateFormWithController(OutputController oc)
        {
            _displayedController = oc;

            if (oc == null) {
                textBoxName.Text = "";
                numericUpDownOutputCount.Value = 0;
                buttonDeleteController.Enabled = false;
                groupBoxSelectedController.Enabled = false;
            } else {
                textBoxName.Text = oc.Name;
                numericUpDownOutputCount.Value = oc.OutputCount;
                buttonDeleteController.Enabled = true;
                groupBoxSelectedController.Enabled = true;
            }
        }