public void setMyLabel(tbl_Label rowFromDB) { this.Name = rowFromDB.Name; this.Type = rowFromDB.Type; this.XML = rowFromDB.XML; this.XMLDoc = setXMLDoc(); this.DynamicXMLField = rowFromDB.DynamicXMLField; this.StoredProcedure = rowFromDB.StoredProcedure; this.ValidPrinters = rowFromDB.ValidPrinters; this.ActiveInactive = rowFromDB.ActiveInactive; }
// NOT CURRENTLY USED - Used to insert a label into the database private tbl_Label convertNewLabel() { tbl_Label = new tbl_Label(); tbl_Label.Name = this.Name; tbl_Label.Type = this.Type; tbl_Label.XML = this.XML; tbl_Label.DynamicXMLField = this.DynamicXMLField; tbl_Label.StoredProcedure = this.StoredProcedure; tbl_Label.ValidPrinters = this.ValidPrinters; tbl_Label.ActiveInactive = this.ActiveInactive; return(tbl_Label); }
public void createMyLabel(tbl_Label dmLabel) { this.Name = ""; this.Type = ""; this.XML = ""; this.DynamicXMLField = ""; this.StoredProcedure = ""; this.ValidPrinters = null; this.ActiveInactive = 0; this.XMLDoc = null; this.tbl_Label = dmLabel; }
private void SetUpPage() { // Initial Load, populate Label DropDown if (!IsPostBack) { SetupLabelDropDown(); } else { // Set myLabel and selectedPrinter Session variables tbl_Label selectedLabel = dbConnection.tbl_Label.Where(x => x.ID.ToString() == ddlLabels.SelectedValue).First(); myLabel.setMyLabel(selectedLabel); this.selectedPrinter = Request.Form["SelectedPrinter"]; } // Lastly, focus on Textbox txtTextForLabel.Focus(); }
public myLabel(tbl_Label dmLabel) { createMyLabel(dmLabel); }