public void Restore(RuleGroupState state) { if (state != null) { BackgroundColor = state.Background; BorderColor = state.Border; TextColor = state.Text; } }