Skip to content

Commit 058bbd3

Browse files
author
Pavel Kovalenko
committed
Override OnLoad instead of subsribing to Load event in ColorPicker control.
1 parent ca40ee4 commit 058bbd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/editors/xrSdkControls/Controls/ColorPicker/ColorPicker.Designer.cs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/editors/xrSdkControls/Controls/ColorPicker/ColorPicker.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ public bool Hexadecimal
5050
}
5151
}
5252

53-
private void ColorPicker_Load(object sender, EventArgs e)
53+
protected override void OnLoad(EventArgs e)
5454
{
55+
base.OnLoad(e);
5556
nslRed.ValueChanged += (obj, args) => UpdateColor();
5657
nslGreen.ValueChanged += (obj, args) => UpdateColor();
5758
nslBlue.ValueChanged += (obj, args) => UpdateColor();

0 commit comments

Comments
 (0)