mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user