public FormEquipmentSoftwareCreateUpd(EquipmentLogic equipmentLogic, SoftwareLogic softwareLogic, EquipmentSoftwareLogic eqSoftLogic) { InitializeComponent(); this.equipmentLogic = equipmentLogic; this.softwareLogic = softwareLogic; this.eqSoftLogic = eqSoftLogic; }
void tvItemCategory_AfterSelect(object sender, TreeViewEventArgs e) { ItemCollection items = null; if (null == tvItemCategory.SelectedNode) { return; } if (e.Action == TreeViewAction.ByMouse) { int equipid = -1; equipid = (int)e.Node.Tag; if (equipid > -1)//only valid node can be process. { Equipment equip = EquipmentLogic.GetOneEquipment(equipid); items = ItemLogic.GetItemsByCategory(equip.Gener, equip.SubType, equip.DetailType); _initItems(ref items); } else if (equipid == -1) { items = ItemLogic.GetAllItems(); _initItems(ref items); } } }
public FormEquipment(TypeLogic typeLogic, EmployeeLogic employeeLogic, SupplierLogic supplierLogic, EquipmentLogic equipmentLogic) { InitializeComponent(); this.typeLogic = typeLogic; this.employeeLogic = employeeLogic; this.supplierLogic = supplierLogic; this.equipmentLogic = equipmentLogic; }
public EquipmentController(EquipmentLogic equipmentLogic) { _equipmentLogic = equipmentLogic; }
public FormEquipmentByDates(EquipmentLogic equipmentLogic) { InitializeComponent(); this.equipmentLogic = equipmentLogic; }
public FormMain(EquipmentLogic equipmentLogic) { InitializeComponent(); this.equipmentLogic = equipmentLogic; }