Skip to content

Commit

Permalink
Override OnLoad instead of subsribing to Load event in ColorPicker co…
Browse files Browse the repository at this point in the history
…ntrol.
  • Loading branch information
Pavel Kovalenko committed Oct 19, 2014
1 parent ca40ee4 commit 058bbd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ public bool Hexadecimal
}
}

private void ColorPicker_Load(object sender, EventArgs e)
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
nslRed.ValueChanged += (obj, args) => UpdateColor();
nslGreen.ValueChanged += (obj, args) => UpdateColor();
nslBlue.ValueChanged += (obj, args) => UpdateColor();
Expand Down

0 comments on commit 058bbd3

Please sign in to comment.