private void dataGridView1_UserAddedRow(object sender, DataGridViewRowEventArgs e) { if (e.Row != null) { DataGridViewRow row = this.dataGridView1.Rows[e.Row.Index - 1]; IDrugTypeService service = ServiceContainer.GetService <IDrugTypeService>(); row.Cells[0].Value = service.GetMaxID(); row.Cells[1].Value = service.GetMaxCode(); } }
public DepotController(IDrugTypeService drugTypeService, IDrugUnitService drugUnitService, IDepotService depotService) { _drugTypeService = drugTypeService; _drugUnitService = drugUnitService; _depotService = depotService; }
public DrugsController(IDrugService drugService, IDrugTypeService drugTypeService, IDrugInRoomService drugInRoomService) { _drugService = drugService; _drugTypeService = drugTypeService; _drugInRoomService = drugInRoomService; }
public DrugTypeController(IDrugTypeService drugTypeService) { _drugTypeService = drugTypeService; }