public FrmProductEntry() { InitializeComponent(); _brandService = new BrandService(); _flavourService = new FlavourService(); _unitService = new UnitService(); _productionMaterialService = new ProductionMaterialService(); _productService = new ProductService(); LoadCombos(); }
public FrmProductEntry() { InitializeComponent(); _brandService = new BrandService(); _flavourService = new FlavourService(); _unitService = new UnitService(); _productionMaterialService = new ProductionMaterialService(); _productService = new ProductService(); LoadCombos(); }
public FrmFlavourEntry(FlavourModel model, Form frmForm) { InitializeComponent(); _frmForm = frmForm; _flavourService = new FlavourService(); if (model != null) { _isNewMode = false; _flavourId = model.FlavourId; txtFlavourName.Text = model.FlavourName; txtRemarks.Text = model.Description; btnAdd.Text = @"Update"; } else { _isNewMode = true; btnAdd.Text = @"Save"; } }
public FrmFlavourEntry(FlavourModel model, Form frmForm) { InitializeComponent(); _frmForm = frmForm; _flavourService = new FlavourService(); if (model != null) { _isNewMode = false; _flavourId = model.FlavourId; txtFlavourName.Text = model.FlavourName; txtRemarks.Text = model.Description; btnAdd.Text = @"Update"; } else { _isNewMode = true; btnAdd.Text = @"Save"; } }
public FrmFlavour() { _CommonService = new CommonService(); _flavourService = new FlavourService(); InitializeComponent(); }
public FrmFlavour() { _CommonService = new CommonService(); _flavourService = new FlavourService(); InitializeComponent(); }