private void gdvSupplier_DoubleClick(object sender, EventArgs e) { try { GridView view = (GridView)sender; Model.Internal.Supplier supplierObj = (Model.Internal.Supplier)view.GetRow(view.FocusedRowHandle); Report.CostSupplier costSupplier = new Report.CostSupplier(supplierObj, Uow); costSupplier.ShowDialog(); } catch (System.Exception excepion1) { System.Exception thisException = excepion1; Management.ShowException(thisException); } }
public CostSupplier(Model.Internal.Supplier supplier, UnitOfWork uow) { try { InitializeComponent(); _supplier = supplier; _uow = uow; _costBL = new Model.BL.CostBL(_uow); FillControls(); AddSerie(1, System.DateTime.Now.Year); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } }
public CostSupplier(Model.Internal.Supplier supplier, UnitOfWork uow) { try { InitializeComponent(); _supplier = supplier; _uow = uow; _costBL = new Model.BL.CostBL(_uow); FillControls(); AddSerie(1, System.DateTime.Now.Year); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } }