public static bool ToPrinterLabelParameter(bool enable, out LabelParameter parameter) { parameter = new LabelParameter(); parameter.SetEnable(enable); return(true); }
public static bool ToPrinterLabelParameter(bool start, bool end, out LabelParameter parameter) { parameter = new LabelParameter(); parameter.SetStart(start); parameter.SetEnd(end); return(true); }
public Label(string labelName, LabelParameter parameterCapture) { _parameterCapture = parameterCapture; _parameters = (ConfigurationManager.GetSection(labelName) as NameValueCollection); _inputs = new Dictionary<string, string>(); LabelPath = ConfigurationManager.AppSettings[labelName]; foreach (var key in _parameters.AllKeys) { _inputs.Add(_parameters[key].ToLower(), ""); } }
private static LabelParameter Parse(string labelName, Match match) { var name = match.Groups["name"].Value; var value = match.Groups["value"].Value.Trim('"').Trim('\''); var labelParameter = new LabelParameter(); labelParameter.Name = name; labelParameter.Value = value; if (value.Contains('(') && value.Contains(')')) { labelParameter.ParameterFunction = Factory.GetInstance<ILabelParameterFunction>(labelName, value); } return labelParameter; }
private static LabelParameter Parse(string labelName, Match match) { var name = match.Groups["name"].Value; var value = match.Groups["value"].Value.Trim('"').Trim('\''); var labelParameter = new LabelParameter(); labelParameter.Name = name; labelParameter.Value = value; if (value.Contains('(') && value.Contains(')')) { labelParameter.ParameterFunction = Factory.GetInstance <ILabelParameterFunction>(labelName, value); } return(labelParameter); }
public LabelResult UpdateLabel(LabelParameter parameter) { string result = base.CallApi(Config.LabelConfig.LabelUpdate, parameter); return(JsonNet.DeserializeToString <LabelResult>(result)); }