private void checkHandler(object sender, ViewOptionChange ChangeHandler, ref bool OptionSave)
        {
            CheckBox checkbox = sender as CheckBox;

            if (checkbox.IsChecked != null)
            {
                OptionSave = (bool)checkbox.IsChecked;
            }
            if (checkbox.IsChecked == true)
            {
                ChangeHandler(ViewOption.Visible);
            }
            else
            {
                ChangeHandler(ViewOption.Invisible);
            }
        }
 private void checkHandler(object sender, ViewOptionChange ChangeHandler, ref bool OptionSave)
 {
     CheckBox checkbox = sender as CheckBox;
     if (checkbox.IsChecked != null) OptionSave = (bool)checkbox.IsChecked;
     if (checkbox.IsChecked == true) ChangeHandler(ViewOption.Visible);
     else ChangeHandler(ViewOption.Invisible);
 }