public override void ParseUserValue(string val) { formatError = false; if (val == "Grid") { value = SupportPatternCura.Grid; } else if (val == "Lines") { value = SupportPatternCura.Lines; } else { formatError = true; } }
protected override bool SetFromSlicerValue(string val) { formatError = false; if (val == "Grid" || val == "0") { value = SupportPatternCura.Grid; } else if (val == "Lines" || val == "1") { value = SupportPatternCura.Lines; } else { formatError = true; return(false); } return(true); }
public SettingsItemSupportPatternTypeCura(SupportPatternCura _value) : base(typeof(SupportPatternCura)) { value = _value; }
public SettingsItemSupportPatternTypeCura() : base(typeof(SupportPatternCura)) { value = SupportPatternCura.Lines; }