protected override void DetachCore() { var currentTest = Test.Value; Test.Detach(); if (currentTest) { True.Detach(); } else { False.Detach(); } }
private void TestChanged(object sender, EventArgs e) { if (!IsAttached) { return; } if (Test.Value) { True.Attach(); False.Detach(); } else { True.Detach(); False.Attach(); } Refresh(); }