6 partial class ConfigurationControl
12 private void InitLimitValues()
14 this.numericPercentFromTop.Value = (int)this.configuration.VisibleLimit.PercentFromTop;
15 this.numericPercentFromTop.ValueChanged +=
this.NumericPercentFromTopOnValueChanged;
16 this.colorUIControl.SelectedColor =
this.configuration.VisibleLimit.Color;
17 this.colorUIControl.ColorSelected +=
this.ColorUiControlOnColorSelected;
27 private void NumericPercentFromTopOnValueChanged(
object sender, EventArgs eventArgs)
29 this.configuration.VisibleLimit.PercentFromTop = (double)this.numericPercentFromTop.Value;
40 private void ColorUiControlOnColorSelected(
object sender, EventArgs eventArgs)
42 this.configuration.VisibleLimit.Color = this.colorUIControl.SelectedColor;
47 private void buttonLoadLimitDefaults_Click(
object sender, EventArgs e)
49 this.DetachLimitEvents();
51 this.InitLimitValues();
54 private void DetachLimitEvents()
56 this.numericPercentFromTop.ValueChanged -= this.NumericPercentFromTopOnValueChanged;
57 this.colorUIControl.ColorSelected -= this.ColorUiControlOnColorSelected;
static Line CreateDefaultVisibleLimits()
Creates the default visible limits.
Class for accessing the configuration.