コード例 #1
0
 //Interface
 public LabelStore()
 {
     //Constructor
     try {
         this.mLabels = new LabelDataset();
     }
     catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new Label Store instance.", ex); }
 }
コード例 #2
0
ファイル: labeltemplate.cs プロジェクト: jpheary/Argix10
        /// <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);
        }