private void StartButton_Click(object sender, EventArgs e) { image = Image.FromFile(System.IO.Path.GetFullPath(@"..\..\..\Zadacha_4_5\Graphics\product.jpg")); //("C:/Users/1/source/repos/Zadacha_4_5/Zadacha_4_5/Graphics/product.jpg"); transporterManager = new TransporterManager(); transporterManager.Progress += Progress; transporterManager.Draw += Draw; transporterManager.DrawNewProduct += DrawNewProduct; transporterManager.AddToStoreProduct += AddToStoreProduct; transporterManager.InitTransporters(4); transporterManager.InitLoaders(2); transporterManager.InitRepairs(2); transporterManager.StartManager(); }
public Repairman(TransporterManager transporterManager, string name, int repairTime) { Name = "Repairman_" + name; RepairSpeed = repairTime; this.transporterManager = transporterManager; }
public RepairmanLazy(TransporterManager transporterManager, string name) : base(transporterManager, name + "_Lazy", 5000) { }
public Loader(TransporterManager transporterManager, string name) { Name = "Loader_" + name; loadUpdateTime = DateTime.MaxValue; this.transporterManager = transporterManager; }
public Transporter(TransporterManager transporterManager, Vector2 pos, string name) { Pos = pos; Name = "Transporter_" + name; this.transporterManager = transporterManager; }
public RepairmanFast(TransporterManager transporterManager, string name) : base(transporterManager, name + "_Fast", 1000) { }