public static CustomAttributeEditorWire CreateCustomAttributEditorWire(Wire model)
        {
            var wire = new CustomAttributeEditorWire();
            wire.Type = "Wire";
            //TODO: assign the model data to the editor
            wire.Id = model.Id;
            wire.Brace1 = model.Brace1 != null? model.Brace1.Id: "";
            wire.Brace2 = model.Brace2 != null ? model.Brace2.Id : "";
            wire.Material = model.Material;
            wire.Thicknes = model.Thicknes;

            return wire;
        }
예제 #2
0
        public static CustomAttributeEditorWire CreateCustomAttributEditorWire(Wire model)
        {
            var wire = new CustomAttributeEditorWire();

            wire.Type = "Wire";
            //TODO: assign the model data to the editor
            wire.Id       = model.Id;
            wire.Brace1   = model.Brace1 != null? model.Brace1.Id: "";
            wire.Brace2   = model.Brace2 != null ? model.Brace2.Id : "";
            wire.Material = model.Material;
            wire.Thicknes = model.Thicknes;

            return(wire);
        }