Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove NRE when changing ShowCheckBoxes #53

Merged
merged 1 commit into from
Jun 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/TestCentric/testcentric.gui/Controls/TestTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ public TestNode[] FailedTests

private ITestModel Model { get; set; }

private UserSettings UserSettings { get; set; }

[Browsable(false)]
public bool ShowCheckBoxes
{
Expand Down Expand Up @@ -692,8 +690,8 @@ private void excludeCheckbox_CheckedChanged(object sender, System.EventArgs e)
//}

private void checkBoxesMenuItem_Click(object sender, System.EventArgs e)
{
UserSettings.TestCentric.TestTree.ShowCheckBoxes = ShowCheckBoxes = !checkBoxesMenuItem.Checked;
{
ShowCheckBoxes = !checkBoxesMenuItem.Checked;
}

private void UpdateCategorySelection()
Expand All @@ -713,9 +711,9 @@ private void UpdateCategorySelection()
}

private void tests_CheckBoxesChanged(object sender, System.EventArgs e)
{
ShowCheckBoxes = tests.CheckBoxes;
}
{
ShowCheckBoxes = tests.CheckBoxes;
}

//private void UserSettings_Changed(object sender, SettingsEventArgs args)
//{
Expand Down