void OnEyeDropperStart(MouseDownEvent e) { if (EyeDropper.IsOpened) { return; } this.m_InitialColor = m_Value; EyeDropper.Start(OnGammaColorChanged); m_EyeDropperScheduler = this.schedule.Execute(OnEyeDropperMove).Every(10).StartingIn(10).Until(this.ShouldStopWatchingEyeDropper); }
void OnEyeDropperStart(MouseDownEvent e) { EyeDropper.Start(OnGammaColorChanged); m_EyeDropperScheduler = this.schedule.Execute(OnEyeDropperMove).Every(10).StartingIn(10); m_EyeDropper.UnregisterCallback <MouseDownEvent>(OnEyeDropperStart); }