//Interface public LabelStore() { //Constructor try { this.mLabels = new LabelDataset(); } catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new Label Store instance.", ex); } }
/// <summary>Returns the label template as an xml object.</summary> public DataSet ToDataSet() { //Return a dataset containing values for this object LabelDataset ds = null; try { ds = new LabelDataset(); LabelDataset.LabelDetailTableRow labelTemplate = ds.LabelDetailTable.NewLabelDetailTableRow(); labelTemplate.LABEL_TYPE = this.mLabelType; labelTemplate.PrinterType = this.mPrinterType; labelTemplate.LABEL_STRING = this.mLabelString; ds.LabelDetailTable.AddLabelDetailTableRow(labelTemplate); } catch (Exception) { } return(ds); }