src/Misc/EFTools/EntityDesign/VisualStudio/ModelWizard/engine/updatefromdatabaseengine.cs
// <summary>
//     Returns a Command to update a value of a designer property
// </summary>
Returns a Command to update a value of a designer property
Returns a Command to update a value of a designer property
private static void AddUpdateDesignerPropertyCommand(
            DesignerProperty property, string propertyName, bool checkBoxValue, OptionsDesignerInfo optionsDesignerInfo,
            List<Command> commands)
        {
            if (property == null
                || property.ValueAttr == null
                || checkBoxValue != bool.Parse(property.ValueAttr.Value))
            {
                var value = checkBoxValue ? Boolean.TrueString : Boolean.FalseString;
                var cmd = new ChangeDesignerPropertyCommand(propertyName, value, optionsDesignerInfo);
                commands.Add(cmd);
            }
        }
private static void AddUpdateDesignerPropertyCommand ( DesignerProperty property , string propertyName , bool checkBoxValue , OptionsDesignerInfo optionsDesignerInfo , List < Command > commands ) { if ( property == null || property . ValueAttr == null || checkBoxValue != bool . Parse ( property . ValueAttr . Value ) ) { var value = checkBoxValue ? Boolean . TrueString : Boolean . FalseString ; var cmd = new ChangeDesignerPropertyCommand ( propertyName , value , optionsDesignerInfo ) ; commands . Add ( cmd ) ; } }
Returns a Command to update a value of a designer property
Returns a Command to update a value of a designer property
property
DesignerProperty
propertyName
string
checkBoxValue
bool
optionsDesignerInfo
OptionsDesignerInfo
commands
List<Command>