Refactors CheckBox to use an enum instead of bool? for state. Cleans up naming to make more correct too (Toggle v. Toggled and State vs. Checked).

This commit is contained in:
Tig
2024-07-01 10:43:16 -06:00
parent b55ee57371
commit 6188127a24
36 changed files with 359 additions and 345 deletions

View File

@@ -13,16 +13,16 @@ public class TreeTableSourceTests : IDisposable
{
_output = output;
_origChecked = ConfigurationManager.Glyphs.Checked;
_origUnchecked = ConfigurationManager.Glyphs.UnChecked;
ConfigurationManager.Glyphs.Checked = new Rune ('☑');
ConfigurationManager.Glyphs.UnChecked = new Rune ('☐');
_origChecked = ConfigurationManager.Glyphs.CheckStateChecked;
_origUnchecked = ConfigurationManager.Glyphs.CheckStateUnChecked;
ConfigurationManager.Glyphs.CheckStateChecked = new Rune ('☑');
ConfigurationManager.Glyphs.CheckStateUnChecked = new Rune ('☐');
}
public void Dispose ()
{
ConfigurationManager.Glyphs.Checked = _origChecked;
ConfigurationManager.Glyphs.UnChecked = _origUnchecked;
ConfigurationManager.Glyphs.CheckStateChecked = _origChecked;
ConfigurationManager.Glyphs.CheckStateUnChecked = _origUnchecked;
}
[Fact]