public ColorValueDefinitionEditor(ColorValueDefinition def) { this.def = def; InitializeComponent(); Location = new Point(99, 53); defaultColorChooser.Color = def.Default; }
public LevelColorValueEditor(Value value, int x, int y) : base(value, x, y) { Definition = (ColorValueDefinition)value.Definition; InitializeComponent(); nameLabel.Text = Definition.Name; colorChooser.Color = Value.Content; }