public void Initialize(PropertySetterConfiguration model) { _model = model; Property = model.Property; foreach (var key in Enum.GetNames(typeof(Direction))) cboDirection.Items.Add(key); }
public void Initialize(PropertySetterConfiguration model) { _model = model; Property = _model.Property; cboDevices.Items.Clear(); foreach (var device in Configuration.Configuration.Current.Devices) cboDevices.Items.Add(device); }
public void Initialize(PropertySetterConfiguration model) { _model = model; Property = model.Property; foreach (var key in Enum.GetNames(typeof(Keys))) cboKey.Items.Add(key); lblProperty.Text = Property; }
private void FillProperties() { Modifier modifier = ((ModifierInfo)cboModifier.SelectedItem).Modifier; pnlProperties.Controls.Clear(); foreach (var prop in modifier.GetType().GetProperties()) { if (prop.GetCustomAttributes(typeof(UserPropertyAttribute), true).Count() == 0) continue; var setterControl = ServiceLocator.GetPropertyUI(prop.PropertyType); PropertySetterConfiguration setterConfig = new PropertySetterConfiguration(); setterConfig.Property = prop.Name; setterConfig.Value = null; setterControl.Initialize(setterConfig); pnlProperties.Controls.Add((Control)setterControl); } }
public void Initialize(PropertySetterConfiguration model) { _model = model; Property = model.Property; lblProperty.Text = Property; }
private void FillProperties(Command cmd) { pnlProperties.Controls.Clear(); if (!cmd.AllowUserProperties) return; foreach (var prop in cmd.GetType().GetProperties()) { if (prop.GetCustomAttributes(typeof(UserPropertyAttribute), true).Count() == 0) continue; var setterControl = ServiceLocator.GetPropertyUI(prop.PropertyType); PropertySetterConfiguration setterConfig = new PropertySetterConfiguration(); setterConfig.Property = prop.Name; setterConfig.Value = null; setterControl.Initialize(setterConfig); pnlProperties.Controls.Add((Control)setterControl); } }