VixenApplication.Setup.SetupControllersSimple.SetupControllersSimple C# (CSharp) Метод

SetupControllersSimple() публичный Метод

public SetupControllersSimple ( ) : System
Результат System
        public SetupControllersSimple()
        {
            InitializeComponent();
            int iconSize = (int)(24 * ScalingTools.GetScaleFactor());
            buttonAddController.Image = Tools.GetIcon(Resources.add, iconSize);
            buttonAddController.Text = "";
            buttonConfigureController.Image = Tools.GetIcon(Resources.cog, iconSize);
            buttonConfigureController.Text = "";
            buttonNumberChannelsController.Image = Tools.GetIcon(Resources.attributes_display, iconSize);
            buttonNumberChannelsController.Text = "";
            buttonRenameController.Image = Tools.GetIcon(Resources.pencil, iconSize);
            buttonRenameController.Text = "";
            buttonDeleteController.Image = Tools.GetIcon(Resources.delete, iconSize);
            buttonDeleteController.Text = "";
            buttonSelectSourceElements.Image = Tools.GetIcon(Resources.table_select_row, iconSize);
            buttonSelectSourceElements.Text = "";
            buttonStopController.Image = Tools.GetIcon(Resources.control_stop_blue, iconSize);
            buttonStopController.Text = "";
            buttonStartController.Image = Tools.GetIcon(Resources.control_play_blue, iconSize);
            buttonStartController.Text = "";
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);

            comboBoxNewControllerType.BeginUpdate();
            foreach (KeyValuePair<Guid, string> kvp in ApplicationServices.GetAvailableModules<IControllerModuleInstance>()) {
                ComboBoxItem item = new ComboBoxItem(kvp.Value, kvp.Key);
                comboBoxNewControllerType.Items.Add(item);
            }
            comboBoxNewControllerType.EndUpdate();
            comboBoxNewControllerType.Sorted = true;
            if (comboBoxNewControllerType.Items.Count > 0)
                comboBoxNewControllerType.SelectedIndex = 0;

            controllerTree.ControllerSelectionChanged += controllerTree_ControllerSelectionChanged;
            controllerTree.ControllersChanged += controllerTree_ControllersChanged;

            UpdateForm();
        }