public NewUnitRadForm(RadForm parent, StateForm state) { InitializeComponent(); this.parentForm = parent; this.stateForm = state; this._serviceUnitBL = new UnitBL(); }
public NewProductRadForm(ProductRadForm currentParentForm, StateForm stateForm) { InitializeComponent(); this._stateForm = stateForm; this._serviceProductBL = new ProductBL(); this._serviceCategoryBL = new CategoryBL(); this._serviceUnitBL = new UnitBL(); this._serviceTaxBL = new TaxBL(); this._currentParentForm = currentParentForm; this.CategoryIDComboBox.DataSource = this._serviceCategoryBL.GetCategories(); this.CategoryIDComboBox.DisplayMember = "CategoryName"; this.CategoryIDComboBox.ValueMember = "CategoryID"; this.UnitIDComboBox.DataSource = this._serviceUnitBL.Sp_GetUnits(); this.UnitIDComboBox.DisplayMember = "UnitDescription"; this.UnitIDComboBox.ValueMember = "UnitID"; this.TaxIDComboBox.DataSource = this._serviceTaxBL.Sp_Taxes(); this.TaxIDComboBox.DisplayMember = "TaxDescription"; this.TaxIDComboBox.ValueMember = "TaxID"; }
public UnitRadForm() { InitializeComponent(); this._serviceUnitBL = new UnitBL(); }