ARCed.Controls.EfficiencySlot.EfficiencySlot C# (CSharp) Метод

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

Default constructor.
public EfficiencySlot ( string label, IEnumerable items, Color colors ) : System
label string Label applied to the slot
items IEnumerable Values that can be selected
colors Color Text colors used for corresponding values
Результат System
        public EfficiencySlot(string label, IEnumerable<string> items, Color[] colors)
        {
            this.InitializeComponent();
            this.labelValue.Text = label;
            foreach (string item in items)
                this.domainUpDown.Items.Add(item);
            this.TextColors = colors;
            this.domainUpDown.SelectedItemChanged += this.domainUpDown_SelectedItemChanged;
        }