Skip to content

Commit

Permalink
GCSView: full list: add none defaults checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 authored and meee1 committed Jul 20, 2022
1 parent 96d4e1b commit 26506b6
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 86 deletions.
88 changes: 49 additions & 39 deletions GCSViews/ConfigurationView/ConfigRawParams.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion GCSViews/ConfigurationView/ConfigRawParams.cs
Expand Up @@ -543,6 +543,7 @@ internal void processToScreen()
});

Default_value.Visible = has_defaults;
chk_none_default.Visible = has_defaults;
}
//update values in rowlist
if (!startup)
Expand Down Expand Up @@ -669,6 +670,15 @@ void filterList(string searchfor)
}
}
}

if (chk_none_default.Checked)
{
foreach (DataGridViewRow row in Params.Rows)
{
row.Visible = (string)row.Cells[Default_value.Index].Value != (string)row.Cells[Value.Index].Value;
}
}

Params.Enabled = true;
Params.ResumeLayout();

Expand Down Expand Up @@ -865,7 +875,7 @@ private void Params_CellClick(object sender, DataGridViewCellEventArgs e)
}
}

private void chk_modified_CheckedChanged(object sender, EventArgs e)
private void chk_filter_CheckedChanged(object sender, EventArgs e)
{
FilterTimerOnElapsed(null, null);
}
Expand Down

0 comments on commit 26506b6

Please sign in to comment.